Skip to content

Commit

Permalink
Fix signed char char traits
Browse files Browse the repository at this point in the history
  • Loading branch information
colbychaskell committed Nov 5, 2023
1 parent 24e9f2d commit 7c8fa5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/nlohmann/detail/input/input_adapters.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ struct char_traits<unsigned char> : std::char_traits<char>

// Explicitly define char traits for signed char since it is not standard
template<>
struct char_traits<signed char> : std::char_traits<char>
struct char_traits<signed char> : char_traits<unsigned char>
{
using char_type = signed char;
};
Expand Down
2 changes: 1 addition & 1 deletion single_include/nlohmann/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6236,7 +6236,7 @@ struct char_traits<unsigned char> : std::char_traits<char>

// Explicitly define char traits for signed char since it is not standard
template<>
struct char_traits<signed char> : std::char_traits<char>
struct char_traits<signed char> : char_traits<unsigned char>
{
using char_type = signed char;
};
Expand Down

0 comments on commit 7c8fa5f

Please sign in to comment.