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)
9 * \author Andrey Semashev
12 * The header contains implementation of a log record placeholder in template expressions.
15 #ifndef BOOST_LOG_EXPRESSIONS_RECORD_HPP_INCLUDED_
16 #define BOOST_LOG_EXPRESSIONS_RECORD_HPP_INCLUDED_
18 #include <boost/phoenix/core/argument.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 * Log record placeholder type in formatter template expressions.
35 typedef phoenix::expression::argument< 1 >::type record_type;
38 * Log record placeholder in formatter template expressions.
40 const record_type record = {};
42 } // namespace expressions
44 BOOST_LOG_CLOSE_NAMESPACE // namespace log
48 #include <boost/log/detail/footer.hpp>
50 #endif // BOOST_LOG_EXPRESSIONS_RECORD_HPP_INCLUDED_