Subject: [Boost-bugs] [Boost C++ Libraries] #8796: posix_time.hpp and vc++6
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-07-08 08:38:06
#8796: posix_time.hpp and vc++6
--------------------------------------------+------------------------
Reporter: ildar <mukhametgaleev.ildar@â¦> | Owner: az_sw_dude
Type: Bugs | Status: new
Milestone: To Be Determined | Component: date_time
Version: Boost 1.34.1 | Severity: Problem
Keywords: posix_time visual c++6 |
--------------------------------------------+------------------------
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!
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8796> 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