From acbae579b395fdb2ad01d115e6d9313ef91821b7 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 12 Mar 2022 12:08:21 +0100 Subject: [PATCH] kraken: utils: make 'StrongType' copyable --- src/utils/strong-type.hh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/strong-type.hh b/src/utils/strong-type.hh index e66a130..8eea45f 100644 --- a/src/utils/strong-type.hh +++ b/src/utils/strong-type.hh @@ -7,6 +7,9 @@ template struct StrongType { explicit StrongType(T value) : value_(value) {} + StrongType(StrongType const&) = default; + StrongType& operator=(StrongType const&) = default; + explicit operator T() const { return value_; }