Boost logo

Boost Users :

From: Jeff Garland (jeff_at_[hidden])
Date: 2006-02-22 23:33:09


On Wed, 22 Feb 2006 21:04:30 +0000 (UTC), Martin Adrian wrote

> Note that the examples in the date_time library:
>
> // create date_facet and date_input_facet using all defaults
> date_facet* date_output = new date_facet();
> ss.imbue(locale(ss.getloc(), date_output));
>
> // replace names in the output facet
> date_output->long_month_names(long_months);
> date_output->long_weekday_names(long_days);
>
> isn't "standard" since the facets are meant to be immutable once
> they are added to a locale. The streams are allowed to cache the
> values returned by the facets so changes are not guaranteed to be
> effective until the next imbue call. However, the date_time
> streaming is implemented without caches so it works.

Hmm, thx for pointing this out...I hadn't realized this. I'll have to take
that into account in the next version of the TR2 date-time proposal :-)

Thx,

Jeff


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