kraken: utils: make 'StrongType' copyable
This commit is contained in:
parent
c62f79cbb2
commit
acbae579b3
1 changed files with 3 additions and 0 deletions
|
|
@ -7,6 +7,9 @@ template <typename T, typename Tag>
|
|||
struct StrongType {
|
||||
explicit StrongType(T value) : value_(value) {}
|
||||
|
||||
StrongType(StrongType const&) = default;
|
||||
StrongType& operator=(StrongType const&) = default;
|
||||
|
||||
explicit operator T() const {
|
||||
return value_;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue