Skip to content

Commit

Permalink
std::varaint remove debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
injae committed Dec 18, 2021
1 parent 63984a6 commit e773100
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions examples/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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")
Expand Down Expand Up @@ -98,6 +96,5 @@ int main()
fmt::print("{}\n", t_from_rjson);
std::cout << t << '\n';


return 0;
}
1 change: 0 additions & 1 deletion include/serdepp/serializer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,6 @@ namespace serde
data = deserialize<T>(format);
return false;
} catch(std::exception& ex) {
std::cout << "error \n";
return true;
}
}
Expand Down

0 comments on commit e773100

Please sign in to comment.