Boost logo

Boost Users :

From: Andrew Holden (aholden_at_[hidden])
Date: 2006-03-22 09:58:27


> -----Original Message-----
> From: Christian Henning [mailto:chhenning_at_[hidden]]
> Sent: Wednesday, March 22, 2006 9:22 AM
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] [date_time] How to create a date from
> stringwithspecific format?
>
> Andrew, thanks for pointing out the submatch feature. Unfortunately no
> match can be found when I try your code. Is it working on your
> machine? Here, the dateMatch container size just 1.
>
> Any ideas why?
>
> Christian

The code seems to work correctly on my machine (MSVC8 with Boost
1.33.1). It throws an out of range error because strDate specifies
November 33. If I change strDate to 11-30-1997, then I can "cout << d"
and get the date.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net