diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/codec/c++/data.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/codec/c++/data.hpp b/modules/codec/c++/data.hpp index afcf382..a750e1e 100644 --- a/modules/codec/c++/data.hpp +++ b/modules/codec/c++/data.hpp @@ -590,7 +590,8 @@ private: }; public: data() = default; - data(const data<MetaSchema, encode::Native>& init){ + + data(data<MetaSchema, encode::Native> init) requires (not std::is_same_v<MetaSchema,Schema>) { if constexpr ( 0u < sizeof...(T) ){ init_helper<0u>::apply(value_, std::move(init)); } |
