diff --git a/README.md b/README.md index 9471d64..90b7ce9 100644 --- a/README.md +++ b/README.md @@ -79,8 +79,6 @@ void EnumToString() { Calculate padding at compile time and enforce zero padding via concepts ``` c++ - - struct struct_with_padding { char a; double c; @@ -106,7 +104,6 @@ void PaddingCheck() { static_assert(form::no_padding); } - ``` ## Create variant of all types inside the namespace @@ -183,14 +180,12 @@ Only YAML supported at the moment ``` c++ -int main() { +int fromYAML() { Config c; auto yaml_input = form::format_yaml(c); auto from_yaml = form::from_yaml(yaml_input); - - return form::compare(c,from_yaml); } ``` @@ -232,7 +227,6 @@ int foo(T) { return 1; } - -foo(std::complex{1,1}); //1 +foo(std::complex{1.0f,1.0f}); //1 ```