Boost C++ Libraries: Ticket #8957: [log] compile error: doc's stream format tutorial sample https://svn.boost.org/trac10/ticket/8957 <p> I tried this sample (enable #if 0 code): <a href="http://www.boost.org/doc/libs/1_54_0/libs/log/example/doc/tutorial_fmt_stream.cpp">http://www.boost.org/doc/libs/1_54_0/libs/log/example/doc/tutorial_fmt_stream.cpp</a> </p> <p> error line is follow: </p> <pre class="wiki">xpr::format_date_time&lt; boost::posix_time::ptime &gt;("TimeStamp", "%Y-%m-%d %H:%M:%S") </pre><p> error description: </p> <pre class="wiki">/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&lt;boost::posix_time::ptime, boost::log::v2s_mt_posix::fallback_to_none, char&gt;::formatter_generator {aka boost::log::v2s_mt_posix::expressions::aux::date_time_formatter_generator_traits&lt;boost::posix_time::ptime, char, void&gt;}' used in nested name specifier </pre><p> I think should add follow line: </p> <pre class="wiki">#include &lt;boost/log/support/date_time.hpp&gt; </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8957 Trac 1.4.3 Andrey Semashev Fri, 02 Aug 2013 09:40:24 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/8957#comment:1 https://svn.boost.org/trac10/ticket/8957#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/85189" title="Added missing includes. Fixes #8957.">[85189]</a>) Added missing includes. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8957" title="#8957: Bugs: [log] compile error: doc's stream format tutorial sample (closed: fixed)">#8957</a>. </p> Ticket