kraken: utils: make 'StrongType' copyable

This commit is contained in:
Bruno BELANYI 2022-03-12 12:08:21 +01:00
parent c62f79cbb2
commit acbae579b3

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