File indexing completed on 2025-01-18 09:39:20
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef BOOST_LOG_DETAIL_C_STR_HPP_INCLUDED_
0017 #define BOOST_LOG_DETAIL_C_STR_HPP_INCLUDED_
0018
0019 #include <string>
0020 #include <boost/core/enable_if.hpp>
0021 #include <boost/log/detail/config.hpp>
0022 #include <boost/log/detail/is_character_type.hpp>
0023 #include <boost/log/detail/header.hpp>
0024
0025 #ifdef BOOST_HAS_PRAGMA_ONCE
0026 #pragma once
0027 #endif
0028
0029 namespace boost {
0030
0031 BOOST_LOG_OPEN_NAMESPACE
0032
0033 namespace aux {
0034
0035 template< typename T >
0036 inline typename boost::enable_if_c< is_character_type< T >::value, const T* >::type c_str(const T* str) BOOST_NOEXCEPT
0037 {
0038 return str;
0039 }
0040
0041 template< typename T, typename TraitsT, typename AllocatorT >
0042 inline typename boost::enable_if_c< is_character_type< T >::value, const T* >::type c_str(std::basic_string< T, TraitsT, AllocatorT > const& str) BOOST_NOEXCEPT
0043 {
0044 return str.c_str();
0045 }
0046
0047 }
0048
0049 BOOST_LOG_CLOSE_NAMESPACE
0050
0051 }
0052
0053 #include <boost/log/detail/footer.hpp>
0054
0055 #endif