From f2c30b4214a11c575e27b79928e82dda91bd03aa Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Sat, 8 Jan 2022 00:28:29 +0100 Subject: Add literals inline namespace --- include/cxxformat/core.hpp | 4 +++- include/cxxformat/string.hpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/cxxformat/core.hpp b/include/cxxformat/core.hpp index 048b3c9..9781970 100644 --- a/include/cxxformat/core.hpp +++ b/include/cxxformat/core.hpp @@ -578,5 +578,7 @@ namespace format { } } - using compile_time::operator ""_format_to; + inline namespace literals { + using compile_time::operator ""_format_to; + } } diff --git a/include/cxxformat/string.hpp b/include/cxxformat/string.hpp index 06cb620..a40c303 100644 --- a/include/cxxformat/string.hpp +++ b/include/cxxformat/string.hpp @@ -21,5 +21,7 @@ namespace format { } } - using compile_time::operator ""_format; + inline namespace literals { + using compile_time::operator ""_format; + } } -- cgit v1.2.3-54-g00ecf