2 * Copyright Andrey Semashev 2016.
3 * Distributed under the Boost Software License, Version 1.0.
4 * (See accompanying file LICENSE_1_0.txt or copy at
5 * http://www.boost.org/LICENSE_1_0.txt)
9 * \author Andrey Semashev
12 * This header is the Boost.Log library implementation, see the library documentation
13 * at http://www.boost.org/doc/libs/release/libs/log/doc/html/index.html.
16 #ifndef BOOST_LOG_DETAIL_C_STR_HPP_INCLUDED_
17 #define BOOST_LOG_DETAIL_C_STR_HPP_INCLUDED_
20 #include <boost/core/enable_if.hpp>
21 #include <boost/log/detail/config.hpp>
22 #include <boost/log/detail/is_character_type.hpp>
23 #include <boost/log/detail/header.hpp>
25 #ifdef BOOST_HAS_PRAGMA_ONCE
31 BOOST_LOG_OPEN_NAMESPACE
35 template< typename T >
36 inline typename boost::enable_if_c< is_character_type< T >::value, const T* >::type c_str(const T* str) BOOST_NOEXCEPT
41 template< typename T, typename TraitsT, typename AllocatorT >
42 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
49 BOOST_LOG_CLOSE_NAMESPACE // namespace log
53 #include <boost/log/detail/footer.hpp>
55 #endif // BOOST_LOG_DETAIL_C_STR_HPP_INCLUDED_