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_keyword_descriptor.hpp
9 * \author Andrey Semashev
12 * The header contains attribute keyword descriptor detection trait.
15 #ifndef BOOST_LOG_EXPRESSIONS_IS_KEYWORD_DESCRIPTOR_HPP_INCLUDED_
16 #define BOOST_LOG_EXPRESSIONS_IS_KEYWORD_DESCRIPTOR_HPP_INCLUDED_
18 #include <boost/mpl/bool.hpp>
19 #include <boost/log/detail/config.hpp>
20 #include <boost/log/detail/header.hpp>
22 #ifdef BOOST_HAS_PRAGMA_ONCE
28 BOOST_LOG_OPEN_NAMESPACE
30 namespace expressions {
33 * Base class for keyword descriptors. All keyword descriptors must derive from this class to support the \c is_keyword_descriptor trait.
35 struct keyword_descriptor
37 #ifndef BOOST_LOG_DOXYGEN_PASS
38 typedef void _is_boost_log_keyword_descriptor;
39 #endif // BOOST_LOG_DOXYGEN_PASS
43 * The metafunction detects if the type \c T is a keyword descriptor
45 template< typename T, typename VoidT = void >
46 struct is_keyword_descriptor :
51 #ifndef BOOST_LOG_DOXYGEN_PASS
52 template< typename T >
53 struct is_keyword_descriptor< T, typename T::_is_boost_log_keyword_descriptor > :
59 } // namespace expressions
61 BOOST_LOG_CLOSE_NAMESPACE // namespace log
65 #include <boost/log/detail/footer.hpp>
67 #endif // BOOST_LOG_EXPRESSIONS_IS_KEYWORD_DESCRIPTOR_HPP_INCLUDED_