From 98f6d9551beefbecd5d93a31ec8b553fee3e1f4c Mon Sep 17 00:00:00 2001 From: Claudius 'keldu' Holeksa Date: Fri, 8 Nov 2024 18:00:17 +0100 Subject: Fixed wrong Schema Type being provided --- modules/codec-json/tests/codec-json.cpp | 1 + modules/codec/c++/data.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/codec-json/tests/codec-json.cpp b/modules/codec-json/tests/codec-json.cpp index 95b0d40..a181dc0 100644 --- a/modules/codec-json/tests/codec-json.cpp +++ b/modules/codec-json/tests/codec-json.cpp @@ -375,6 +375,7 @@ SAW_TEST("Array Struct read and write"){ SAW_TEST("Struct Array Struct read and write"){ using namespace saw; data native; + native.template get<"banana">() = {4u}; data json; diff --git a/modules/codec/c++/data.hpp b/modules/codec/c++/data.hpp index 8e29d3c..26f3afd 100644 --- a/modules/codec/c++/data.hpp +++ b/modules/codec/c++/data.hpp @@ -608,7 +608,7 @@ public: return make_void(); } - error_or>> find(ref> key){ + error_or>> find(ref> key){ auto find = vals_.find(key()); if(find == vals_.end()){ return make_error(); -- cgit v1.2.3