[Boost-bugs] [Boost C++ Libraries] #8957: [log] compile error: doc's stream format tutorial sample

Subject: [Boost-bugs] [Boost C++ Libraries] #8957: [log] compile error: doc's stream format tutorial sample
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-08-02 09:28:35


#8957: [log] compile error: doc's stream format tutorial sample
-----------------------------------------------+---------------------
 Reporter: Akira Takahashi <faithandbrave@…> | Owner: andysem
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: log
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: |
-----------------------------------------------+---------------------
 I tried this sample (enable #if 0 code):
 http://www.boost.org/doc/libs/1_54_0/libs/log/example/doc/tutorial_fmt_stream.cpp

 error line is follow:
 {{{
 xpr::format_date_time< boost::posix_time::ptime >("TimeStamp", "%Y-%m-%d
 %H:%M:%S")
 }}}

 error description:
 {{{
 /repository/Library/Boost/boost_1_54_0/boost/log/expressions/formatters/date_time.hpp:94:98:
 error: incomplete type
 'boost::log::v2s_mt_posix::expressions::format_date_time_terminal<boost::posix_time::ptime,
 boost::log::v2s_mt_posix::fallback_to_none, char>::formatter_generator
 {aka
 boost::log::v2s_mt_posix::expressions::aux::date_time_formatter_generator_traits<boost::posix_time::ptime,
 char, void>}' used in nested name specifier
 }}}

 I think should add follow line:
 {{{
 #include <boost/log/support/date_time.hpp>
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8957>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:13 UTC