Skip to content

Commit

Permalink
refactor: Blob uses direct assignment instead of copy
Browse files Browse the repository at this point in the history
  • Loading branch information
EduMenges committed May 10, 2024
1 parent 8c0c030 commit c5f5439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/base/blob.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ namespace sgns::base {
* @brief constructor enabling initializer list
* @param l initializer list
*/
explicit Blob(const std::array<byte_t, size_> &l) {
std::copy(l.begin(), l.end(), this->begin());
explicit Blob( const std::array<byte_t, size_> &l ) : std::array<byte_t, size_>( l )
{
}

/**
Expand Down

0 comments on commit c5f5439

Please sign in to comment.