Boost logo

Boost :

From: Ian Baxter (ian_at_[hidden])
Date: 2003-05-27 23:17:55


I wish that the date time library could construct a ptime from it's own
to_simple_string function.

i.e time = time_from_string( to_simple_string( time ) );

Strange to have library that can construct a time from a string, but not
from a string it itself has produced.

Also, with MSVC 7.0, the date time library produces the following error (in
lexical_cast)

S:\lib\boost_1_30\boost\lexical_cast.hpp(147): error C2678: binary '<<' : no
operator found which takes a left-hand operand of type
'std::basic_stringstream<_Elem,_Traits,_Alloc>' (or there is no acceptable
conversion)

with

[

_Elem=wchar_t,

_Traits=std::char_traits<wchar_t>,

_Alloc=std::allocator<wchar_t>

]

 reverting lexical_cast to V1_29 fixes this.

Cheers

Ian Baxter


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk