Re: [Cppcms-users] Parsing time from a string into date_time?
Brought to you by:
artyom-beilis
|
From: Artyom B. <art...@ya...> - 2012-04-21 15:31:39
|
>> It works, with manipulators:
>>
>> ss >> booster::locale::as::ftime("%Y-%m-%d") >> dt;
>
> Is there a way to check for such failure(ie. does it throw?)
>
The error is reported as any error in istream parsing: failbit.
Read about error handling for C++ I/O stream
Artyom
|