summaryrefslogtreecommitdiff
path: root/modules/codec/c++
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-08-05 10:32:56 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-08-05 10:32:56 +0200
commitd2f1e85c2c8646156117e2bd686ffea5f31cdc86 (patch)
tree7550934ff42bb811a913b5da7f9f747bf0b182f5 /modules/codec/c++
parent4bde4893c9ab3a0d09570946b67734751bc84408 (diff)
downloadforstio-forstio-d2f1e85c2c8646156117e2bd686ffea5f31cdc86.tar.gz
Fixing a mixup if MetaSchema and Schema are identical
Diffstat (limited to 'modules/codec/c++')
-rw-r--r--modules/codec/c++/data.hpp3
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));
}