2 * Copyright Andrey Semashev 2007 - 2015.
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)
8 * \file is_character_type.hpp
9 * \author Andrey Semashev
12 * The header defines \c is_character_type trait which checks if the type is one of the character types
15 #ifndef BOOST_LOG_DETAIL_IS_CHARACTER_TYPE_HPP_INCLUDED_
16 #define BOOST_LOG_DETAIL_IS_CHARACTER_TYPE_HPP_INCLUDED_
18 #include <boost/log/detail/config.hpp>
19 #include <boost/log/detail/header.hpp>
21 #ifdef BOOST_HAS_PRAGMA_ONCE
27 BOOST_LOG_OPEN_NAMESPACE
31 template< typename T >
32 struct is_character_type
34 static BOOST_CONSTEXPR_OR_CONST bool value = false;
38 struct is_character_type< char >
40 static BOOST_CONSTEXPR_OR_CONST bool value = true;
44 struct is_character_type< wchar_t >
46 static BOOST_CONSTEXPR_OR_CONST bool value = true;
49 #if !defined(BOOST_NO_CXX11_CHAR16_T)
51 struct is_character_type< char16_t >
53 static BOOST_CONSTEXPR_OR_CONST bool value = true;
57 #if !defined(BOOST_NO_CXX11_CHAR32_T)
59 struct is_character_type< char32_t >
61 static BOOST_CONSTEXPR_OR_CONST bool value = true;
67 BOOST_LOG_CLOSE_NAMESPACE // namespace log
71 #include <boost/log/detail/footer.hpp>
73 #endif // BOOST_LOG_DETAIL_IS_CHARACTER_TYPE_HPP_INCLUDED_