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)