date_names_put is defined in date_names_put.hpp as
template<class Config,
class charT = char,
class OutputIterator = std::ostreambuf_iterator<charT> >
class date_names_put : public std::locale::facet
file greg_facet.hpp defines:
typedef boost::date_time::date_names_put<greg_facet_config> greg_base_facet;
This makes use of the default charT = char.
Later in that file...
template <class charT, class traits>
inline
std::basic_ostream<charT, traits>&
operator<<(std::basic_ostream<charT, traits>& os, const date& d)
{
typedef boost::date_time::ostream_date_formatter<date, greg_base_facet, charT>
greg_ostream_formatter;
greg_ostream_formatter::date_put(d, os);
return os;
}
This function purports to be valid for any charT. However, because greg_base_facet is
a typedef for date_names_put with a default of "char", it looks to me it wouldn't work
for
other char types such as wchar_t.
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost