File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed
Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 99cmake_minimum_required ( VERSION 3.14 )
1010
1111project ( "daw-json-link"
12- VERSION "3.31.0 "
12+ VERSION "3.31.1 "
1313 DESCRIPTION "Static JSON parsing in C++"
1414 HOMEPAGE_URL "https://github.com/beached/daw_json_link"
1515 LANGUAGES C CXX )
Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ namespace std {
106106
107107 template <daw::json::json_options_t PolicyFlags, typename Allocator>
108108 class tuple_size <daw::json::basic_json_pair<PolicyFlags, Allocator>> {
109+ public:
109110 static constexpr std::size_t value = 2 ;
110111 };
111112} // namespace std
Original file line number Diff line number Diff line change 1717#if not defined( DAW_JSON_VER_OVERRIDE )
1818// Should be updated when a potential ABI break is anticipated
1919#if defined( DEBUG ) or not defined( NDEBUG )
20- #define DAW_JSON_VER v3_31_0d
20+ #define DAW_JSON_VER v3_31_1d
2121#else
22- #define DAW_JSON_VER v3_31_0
22+ #define DAW_JSON_VER v3_31_1
2323#endif
2424#else
2525#define DAW_JSON_VER DAW_JSON_VER_OVERRIDE
Original file line number Diff line number Diff line change @@ -1518,4 +1518,9 @@ int main( ) {
15181518 throw ;
15191519 }
15201520#endif
1521+
1522+ static_assert ( std::tuple_size_v<daw::json::json_pair> == 2 );
1523+ static_assert ( std::tuple_size_v<daw::json::json_pair const > == 2 );
1524+ static_assert ( std::tuple_size_v<daw::json::basic_json_pair<>> == 2 );
1525+ static_assert ( std::tuple_size_v<daw::json::basic_json_pair<> const > == 2 );
15211526}
You can’t perform that action at this time.
0 commit comments