Skip to content

Commit

Permalink
ubuntu tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danielaparker committed May 23, 2024
1 parent 5071054 commit bf8fdc4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/jsoncons/json_object.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,23 @@ namespace jsoncons {

namespace std
{
#if defined(__clang__)
// Fix: https://github.com/nlohmann/json/issues/1401
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wmismatched-tags"
#endif

template<class Key, class Value>
struct tuple_size<jsoncons::key_value<Key,Value>>
: public std::integral_constant<std::size_t, 2> {};

template<class Key, class Value> struct tuple_element<0, jsoncons::key_value<Key,Value>> { using type = Key; };
template<class Key, class Value> struct tuple_element<1, jsoncons::key_value<Key,Value>> { using type = Value; };

#if defined(__clang__)
#pragma clang diagnostic pop
#endif

} // namespace std

namespace jsoncons {
Expand Down

0 comments on commit bf8fdc4

Please sign in to comment.