Boost C++ Libraries: Ticket #8796: posix_time.hpp and vc++6 https://svn.boost.org/trac10/ticket/8796 <p> Hi, I use visual c++ 6 SP5 and process pack and boost 1_34_1. When I try to compile : </p> <pre class="wiki">#include "stdafx.h" #include &lt;boost/date_time/posix_time/posix_time.hpp&gt; int main(int argc, char* argv[]) { return 0; } </pre><p> I get some errors: </p> <p> Compiling... <a class="missing wiki">StdAfx</a>.cpp Compiling... Boost_testq1.cpp d:\third\boost\include\boost-1_34_1\boost\date_time\time_parsing.hpp(59) : error C2899: typename cannot be used outside a template declaration </p> <blockquote> <p> d:\third\boost\include\boost-1_34_1\boost\date_time\time_parsing.hpp(145) : see reference to function template instantiation 'class boost::posix_time::time_duration <span class="underline">cdecl boost::date_time::str_from_delimited_time_duration(const class std:: </span></p> </blockquote> <p> basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; &amp;)' being compiled d:\third\boost\include\boost-1_34_1\boost\date_time\time_parsing.hpp(62) : error C2899: typename cannot be used outside a template declaration </p> <blockquote> <p> d:\third\boost\include\boost-1_34_1\boost\date_time\time_parsing.hpp(145) : see reference to function template instantiation 'class boost::posix_time::time_duration <span class="underline">cdecl boost::date_time::str_from_delimited_time_duration(const class std:: </span></p> </blockquote> <p> basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; &amp;)' being compiled d:\third\boost\include\boost-1_34_1\boost\date_time\time_parsing.hpp(63) : error C2899: typename cannot be used outside a template declaration </p> <blockquote> <p> d:\third\boost\include\boost-1_34_1\boost\date_time\time_parsing.hpp(145) : see reference to function template instantiation 'class boost::posix_time::time_duration <span class="underline">cdecl boost::date_time::str_from_delimited_time_duration(const class std:: </span></p> </blockquote> <p> basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; &amp;)' being compiled Error executing cl.exe. </p> <p> Boost_testq1.exe - 3 error(s), 0 warning(s) </p> <p> Thanks! </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8796 Trac 1.4.3 ildar <mukhametgaleev.ildar@…> Thu, 11 Jul 2013 09:15:34 GMT <link>https://svn.boost.org/trac10/ticket/8796#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8796#comment:1</guid> <description> <p> Is anyone here? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Tue, 01 Apr 2014 01:11:26 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8796#comment:2 https://svn.boost.org/trac10/ticket/8796#comment:2 <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">wontfix</span> </li> </ul> <p> Your only chance is to try an older version of Boost. Even though support for vc6 wasn't officially dropped until 1.35.0, it was still spotty before then. </p> Ticket