Opened 9 years ago
Closed 9 years ago
#8796 closed Bugs (wontfix)
posix_time.hpp and vc++6
Reported by: | Owned by: | az_sw_dude | |
---|---|---|---|
Milestone: | To Be Determined | Component: | date_time |
Version: | Boost 1.34.1 | Severity: | Problem |
Keywords: | posix_time visual c++6 | Cc: |
Description
Hi, I use visual c++ 6 SP5 and process pack and boost 1_34_1. When I try to compile :
#include "stdafx.h" #include <boost/date_time/posix_time/posix_time.hpp> int main(int argc, char* argv[]) { return 0; }
I get some errors:
Compiling... StdAfx.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
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 cdecl boost::date_time::str_from_delimited_time_duration(const class std::
basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)' 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
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 cdecl boost::date_time::str_from_delimited_time_duration(const class std::
basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)' 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
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 cdecl boost::date_time::str_from_delimited_time_duration(const class std::
basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)' being compiled Error executing cl.exe.
Boost_testq1.exe - 3 error(s), 0 warning(s)
Thanks!
Change History (2)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
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.
Is anyone here?