kraken: utils: make 'StrongType' copyable

This commit is contained in:
Bruno BELANYI 2022-03-12 12:08:21 +01:00
parent c62f79cbb2
commit acbae579b3
1 changed files with 3 additions and 0 deletions

View File

@ -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_;
}