Skip to content

Commit

Permalink
[wpiutil] ct_string: Use inline namespace for literals
Browse files Browse the repository at this point in the history
This avoids a conflict with json.
  • Loading branch information
PeterJohnson committed Oct 15, 2023
1 parent 89bd522 commit 9b78a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wpiutil/src/main/native/include/wpi/ct_string.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct ct_string {
template <typename Char, size_t M>
ct_string(Char const (&s)[M]) -> ct_string<Char, std::char_traits<Char>, M - 1>;

namespace literals {
inline namespace literals {
template <ct_string S>
consteval auto operator""_ct_string() {
return S;
Expand Down

0 comments on commit 9b78a17

Please sign in to comment.