summaryrefslogtreecommitdiff
path: root/modules/codec
diff options
context:
space:
mode:
Diffstat (limited to 'modules/codec')
-rw-r--r--modules/codec/c++/data.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/codec/c++/data.hpp b/modules/codec/c++/data.hpp
index 4289ed8..c43402e 100644
--- a/modules/codec/c++/data.hpp
+++ b/modules/codec/c++/data.hpp
@@ -522,7 +522,7 @@ public:
* Default constructor.
*/
data() = default;
- data(data<MetaSchema, encode::Native> init){
+ data(const data<MetaSchema, encode::Native>& init)requires(not std::is_same_v<Schema,MetaSchema>){
if constexpr ( 0u < sizeof...(T) ){
init_helper<0u>::apply(value_, std::move(init));
}