mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
[wpiutil] ct_string: Use inline namespace for literals (#5767)
This avoids a conflict with json.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user