Commit Graph

1215 Commits

Author SHA1 Message Date
Théo DELRIEU
4c1e846bf6 remove explicit keyword on udt-constructor 2016-12-04 17:53:36 +01:00
Théo Delrieu
dabe99f83c rewrite unit-udt: basic usage 2016-12-04 17:53:36 +01:00
Théo DELRIEU
a645a766e4 add support for non-default-constructible udt 2016-11-30 23:39:16 +01:00
Théo DELRIEU
4e0ac5993e add a few tests 2016-11-26 01:46:03 +01:00
Théo Delrieu
cd82e8e92b remove some useless checks, format a bit, added some comments 2016-11-26 01:46:03 +01:00
Théo DELRIEU
453fe5d8a2 format biggest lines 2016-11-26 01:46:03 +01:00
Théo Delrieu
58b145f31e only use conjunction & co when needed to avoid MSVC crashing 2016-11-26 01:46:02 +01:00
Théo DELRIEU
ec5ba4c7a7 add is_compatible_basic_json_type trait 2016-11-26 01:46:02 +01:00
Théo Delrieu
84242151c8 add a macro for has_xxx types 2016-11-26 01:46:02 +01:00
Théo DELRIEU
b97eb4df30 correctly constrain basic_json udt constructor 2016-11-26 01:46:02 +01:00
Théo DELRIEU
c8102d2ce7 add negation, disjunction, and conjunction from C++17 2016-11-26 01:46:02 +01:00
Théo DELRIEU
c41e03be6b remove constraints on JSONSerializer instances, constrain correctly new methods 2016-11-26 01:46:02 +01:00
Théo DELRIEU
b1e47170c4 add is_compatible_* traits 2016-11-26 01:46:02 +01:00
Théo DELRIEU
a5d81ff3c2 add basic test for custom serializer 2016-11-26 01:46:02 +01:00
Théo DELRIEU
88f7eb63d9 fix compilation: add a return in constexpr functions 2016-11-26 01:46:02 +01:00
Théo DELRIEU
75a9cf116e to_json and from_json takes both two arguments now
the first is the basic_json type, the second the user-defined type
2016-11-26 01:46:02 +01:00
Théo DELRIEU
7dbafbe4ba renamed unit-constructor3.cpp to unit-udt.cpp 2016-11-26 01:46:02 +01:00
Théo DELRIEU
d45533b32f add template arguments for JSONSerializer 2016-11-26 01:46:02 +01:00
Théo DELRIEU
7d6dbcfbf4 add first version for alternate implementation 2016-11-26 01:46:02 +01:00
Théo DELRIEU
0ec64b6df4 fix compilation on gcc 4.9 2016-11-26 01:46:01 +01:00
Théo Delrieu
e90553f863 fix compilation on vs2015 (taken from MS-ranges) 2016-11-26 01:46:01 +01:00
Théo DELRIEU
d36ae188e1 move most SFINAE trickery in to/from_json_fn 2016-11-26 01:46:01 +01:00
Théo DELRIEU
93dabed0a8 remove has_destructor and has_json_traits, use decltype instead 2016-11-26 01:46:01 +01:00
Théo DELRIEU
27d4416a09 use uncvref_t<T> instead of remove_cv_t<remove_reference_t<T>>> 2016-11-26 01:46:01 +01:00
Théo DELRIEU
34c9f092a2 rename __static_const to _static_const (reserved identifier) 2016-11-26 01:46:01 +01:00
Théo DELRIEU
d2f8d439f9 revert useless formatting 2016-11-26 01:46:01 +01:00
Théo DELRIEU
eb58a4e51c add alias templates to reduce boilerplate 2016-11-26 01:46:01 +01:00
Théo DELRIEU
3bbccb1544 wip: add get_impl overload that uses free from_json method 2016-11-26 01:46:01 +01:00
Théo DELRIEU
2bb49e1555 wip: modify from_json prototype 2016-11-26 01:46:01 +01:00
Théo DELRIEU
d6fea62a29 wip: add free function to_json/from_json support 2016-11-26 01:46:01 +01:00
Théo DELRIEU
528315fb03 anonymous namespace renamed to detail 2016-11-26 01:46:00 +01:00
Théo DELRIEU
8da5ad5acb fix compilation on gcc-6 2016-11-26 01:45:31 +01:00
Théo Delrieu
ca811a28ee add first version support for user-defined types 2016-11-26 01:45:31 +01:00
Niels Lohmann
a791af30b4 Merge branch 'feature/filenotfound' into develop 2016-11-25 17:39:38 +01:00
Niels Lohmann
1ed510c232 Merge branch 'develop' into feature/filenotfound 2016-11-25 17:39:24 +01:00
Niels Lohmann
f194db9aa6 added assertion for warning from #368 2016-11-24 22:07:35 +01:00
Niels Lohmann
c39c36e6ad 💄 fixed indentation 2016-11-24 22:05:29 +01:00
Niels Lohmann
472d0045ba 📝 updating README after fixing #299 2016-11-24 21:56:21 +01:00
Niels Lohmann
1407bbf94c 💄 fixed indentation 2016-11-24 21:54:05 +01:00
Niels Lohmann
8014637ad1 added a test for EOF error (#367) 2016-11-24 21:53:41 +01:00
Niels Lohmann
dfc49e7afe 🐛 fixed a bug if parser was called with a stream at EOF (#367) 2016-11-24 21:45:10 +01:00
Niels Lohmann
e3450cac72 📈 removing more variance of the benchmarks 2016-11-24 18:24:26 +01:00
Niels Lohmann
c3a610d32a 🔧 ignoring Clion files 2016-11-24 17:45:01 +01:00
Niels Lohmann
25548f85c9 👷 trying Coverity with Clang 3.6 (#299) 2016-11-24 17:25:05 +01:00
Niels Lohmann
4bb41d065b 🐛 parsing erroneous files yields an exception (#366) 2016-11-23 16:57:01 +01:00
Niels
ed611119d9 📈 reducing benchmark variance (#365) 2016-11-23 08:47:40 +01:00
Niels
c34b41acd6 🐛 fixes crash in dump from static object (#359)
Merge branch 'feature/issue359' into develop
2016-11-22 06:57:58 +01:00
Niels
abce5c25bb 📝 cleaned comments and updated README 2016-11-21 23:38:17 +01:00
Niels
43dbe02d5b 🐛 fixing #359 2016-11-21 21:53:10 +01:00
Niels
0d72767b3e ⬆️ updated to Catch v1.5.8 2016-11-16 19:15:54 +01:00