Opened 16 years ago

Closed 15 years ago

#723 closed Bugs (wontfix)

local_time_facet error in VS2005 Win2003

Reported by: zhaozg Owned by: Thorsten Ottosen
Milestone: Component: date_time
Version: Boost 1.34.0 Severity: Showstopper
Keywords: Cc:

Description

local_time_facet *facet  = new local_time_facet();




1>D:\work\boost\boost/range/const_iterator.hpp(37) :
error C2825: 'C': must be a class or namespace when
followed by '::'
1>       
D:\work\boost\boost/algorithm/string/replace.hpp(656) :
see reference to class template instantiation
'boost::range_const_iterator<C>' being compiled
1>        with
1>        [
1>            C=const char *
1>        ]
1>       
D:\work\boost\boost/date_time/time_facet.hpp(257) : see
reference to function template instantiation 'void
boost::algorithm::replace_all<std::basic_string<_Elem,_Traits,_Ax>,const
char*,std::basic_string<_Elem,_Traits,_Ax>>(SequenceT
&,const Range1T &,const Range2T &)' being compiled
1>        with
1>        [
1>            _Elem=char,
1>            _Traits=std::char_traits<char>,
1>            _Ax=std::allocator<char>,
1>           
SequenceT=std::basic_string<char,std::char_traits<char>,std::allocator<char>>,
1>            Range1T=const char *,
1>           
Range2T=std::basic_string<char,std::char_traits<char>,std::allocator<char>>
1>        ]
1>       
D:\work\boost\boost/date_time/time_facet.hpp(239) :
while compiling class template member function
'std::ostreambuf_iterator<_Elem,_Traits>
boost::date_time::time_facet<time_type,CharT>::put(OutItrT,std::ios_base
&,char,const time_type &) const'
1>        with
1>        [
1>            _Elem=char,
1>            _Traits=std::char_traits<char>,
1>            time_type=boost::local_time::local_date_time,
1>            CharT=char,
1>           
OutItrT=std::ostreambuf_iterator<char,std::char_traits<char>>
1>        ]
1>        .\HttpService.cpp(50) : see reference to
class template instantiation
'boost::date_time::time_facet<time_type,CharT>' being
compiled
1>        with
1>        [
1>            time_type=boost::local_time::local_date_time,
1>            CharT=char
1>        ]
1>D:\work\boost\boost/range/const_iterator.hpp(37) :
error C2039: 'const_iterator' : is not a member of
'`global namespace''
1>D:\work\boost\boost/range/const_iterator.hpp(37) :
error C2146: syntax error : missing ';' before
identifier 'type'
1>D:\work\boost\boost/range/const_iterator.hpp(37) :
error C2208: 'boost::type' : no members defined using
this type
1>D:\work\boost\boost/range/const_iterator.hpp(37) :
fatal error C1903: unable to recover from previous
error(s); stopping compilation

Change History (3)

comment:1 by az_sw_dude, 16 years ago

Logged In: YES 
user_id=579686

This is a problem in the range library via string algo.  I
saw the problem and psted to the list and then it went away.
 Re-assigning to Thorsten for investigation.

Jeff

comment:2 by Thorsten Ottosen, 15 years ago

Severity: Showstopper

Can I see the complete code to reproduce this error?

Thanks

-Thorsten

comment:3 by Thorsten Ottosen, 15 years ago

Resolution: Nonewontfix
Status: assignedclosed

I haven't heard anything here, so I assume it has gone away somehow.

-Thorsten

Note: See TracTickets for help on using tickets.