Add inline namespace

This commit is contained in:
Franz Pöschel
2025-05-16 15:03:29 +02:00
parent a01fe3b4c1
commit 5b3d75e2db
51 changed files with 289 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
#include <toml11/serializer.hpp>
#include <toml11/types.hpp>
#include <toml11/version.hpp>
#if ! defined(TOML11_COMPILE_SOURCES)
#error "Define `TOML11_COMPILE_SOURCES` before compiling source code!"
@@ -7,6 +8,8 @@
namespace toml
{
inline namespace TOML11_INLINE_VERSION_NAMESPACE
{
struct type_config;
struct ordered_type_config;
@@ -37,4 +40,5 @@ namespace detail
template class serializer<::toml::type_config>;
template class serializer<::toml::ordered_type_config>;
} // detail
} // TOML11_INLINE_VERSION_NAMESPACE
} // toml