diff --git a/examples/example.cpp b/examples/example.cpp index d7125ce..e17b5ef 100644 --- a/examples/example.cpp +++ b/examples/example.cpp @@ -8,13 +8,11 @@ enum class tenum {INPUT, OUTPUT, INPUT_2 , OUTPUT_2 }; - struct nested { DERIVE_SERDE(nested, (&Self::version, "version", value_or_struct) (&Self::opt_desc ,"opt_desc") [attributes(default_{"default value"})] - (&Self::desc ,"desc") .no_remain()) std::string version; @@ -25,7 +23,7 @@ struct nested { class test { public: DERIVE_SERDE(test, - [attributes( default_{"hello"})] + [attributes(default_{"hello"})] (&Self::str, "str") (&Self::i, "i") (&Self::vec, "vec") @@ -98,6 +96,5 @@ int main() fmt::print("{}\n", t_from_rjson); std::cout << t << '\n'; - return 0; } diff --git a/include/serdepp/serializer.hpp b/include/serdepp/serializer.hpp index 6f5ac5a..ee775b5 100644 --- a/include/serdepp/serializer.hpp +++ b/include/serdepp/serializer.hpp @@ -574,7 +574,6 @@ namespace serde data = deserialize(format); return false; } catch(std::exception& ex) { - std::cout << "error \n"; return true; } }