Refactoring of conversion functions#686
Conversation
83d26dc to
5471363
Compare
|
|
7641c3f to
a9c6df6
Compare
|
|
2c1545d to
37a7594
Compare
|
|
5e13585 to
0cbfc1f
Compare
|
|
0cbfc1f to
ae65a1e
Compare
|
|
565943c to
018f286
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #686 +/- ##
========================================
Coverage 99.13% 99.13%
========================================
Files 69 69
Lines 6584 6587 +3
========================================
+ Hits 6527 6530 +3
Misses 57 57
Continue to review full report at Codecov.
|
|
|
9c7f931 to
1e57a31
Compare
|
|
2c66059 to
b139626
Compare
|
An automated preview of the documentation is available at https://686.jsondocs.prtest.cppalliance.org/libs/json/doc/html/index.html |
|
|
b139626 to
77a2183
Compare
|
An automated preview of the documentation is available at https://686.jsondocs.prtest.cppalliance.org/libs/json/doc/html/index.html |
1 similar comment
|
An automated preview of the documentation is available at https://686.jsondocs.prtest.cppalliance.org/libs/json/doc/html/index.html |
42d6357 to
510c4d5
Compare
|
An automated preview of the documentation is available at https://686.jsondocs.prtest.cppalliance.org/libs/json/doc/html/index.html |
510c4d5 to
ee66d56
Compare
|
An automated preview of the documentation is available at https://686.jsondocs.prtest.cppalliance.org/libs/json/doc/html/index.html |
ee66d56 to
ce144b5
Compare
|
An automated preview of the documentation is available at https://686.jsondocs.prtest.cppalliance.org/libs/json/doc/html/index.html |
|
|
|
|
||
| #include <utility> | ||
|
|
||
| BOOST_JSON_NS_BEGIN |
There was a problem hiding this comment.
if we don't have standalone we don't need this namespace macro
There was a problem hiding this comment.
All public header files need to be listed in <boost/json.hpp>, this one is missing (are any other new files missing?)
| #include <utility> | ||
|
|
||
| BOOST_JSON_NS_BEGIN | ||
| namespace detail { |
There was a problem hiding this comment.
Implementation details should be in json/detail or json/impl not a public header since this is scanned by doxygen
There was a problem hiding this comment.
This stuff should go in <boost/json/detail/conversion.hpp>
| ; | ||
| #endif | ||
|
|
||
| /** Determine if `T` can be treated like a 1-to-1 mapping during |
There was a problem hiding this comment.
Metafunction briefs should start with "Metafunction"
There was a problem hiding this comment.
These aren't metafunctions, they are type traits.
There was a problem hiding this comment.
it isn't a function taking a type as an argument and returning a value?
There was a problem hiding this comment.
Metafunctions return types, these return boolean values, so they are type traits.
| <member><link linkend="json.ref.boost__json__is_sequence_like">is_sequence_like</link></member> | ||
| <member><link linkend="json.ref.boost__json__is_map_like">is_map_like</link></member> | ||
| <member><link linkend="json.ref.boost__json__is_null_like">is_null_like</link></member> | ||
| <member><link linkend="json.ref.boost__json__is_tuple_like">is_tuple_like</link></member> |
There was a problem hiding this comment.
These are not in alphabetical order, was this intended?
|
This needs exposition in the docs |
|
@pdimov did you review this? |









The list of changes:
container_traitsinto several traits and helpersmap_traitsinto several traitsvalue_typemore consistentlydetail::inserterdetail::inserterwith map-like typesvalue_refand don't usevalue_to/fromwhen constructingvaluefromvalue_refvalue_toandvalue_fromis_map_likeis_sequence_like