From 7b14d83548d843b236ba31b75ce6e1a72924e5d5 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 4 Feb 2022 22:55:13 +0200 Subject: [PATCH] Hide the definition of srcloc_strip_top_level from non-GCC compilers, specifically Clang --- include/boost/assert/source_location.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/assert/source_location.hpp b/include/boost/assert/source_location.hpp index f32e548..31a2107 100644 --- a/include/boost/assert/source_location.hpp +++ b/include/boost/assert/source_location.hpp @@ -123,6 +123,8 @@ template std::basic_ostream & operator<<( std::basic_ost return os; } +#if defined(BOOST_GCC) + namespace detail { @@ -133,6 +135,8 @@ BOOST_CONSTEXPR inline char const* srcloc_strip_top_level( char const* fn ) } // namespace detail +#endif // #if defined(BOOST_GCC) + } // namespace boost #if defined(BOOST_DISABLE_CURRENT_LOCATION)