|
Boost Users : |
Subject: [Boost-users] Problem with date_time facets
From: Tavares, Pedro \(London\) (pedro_tavares_at_[hidden])
Date: 2008-09-16 09:13:31
Hi all,
I'm using boost with stlport 5.1.5 in msvc 7.1. when I try to use date
facets, the compiler complains there is not suitable std::locale ctor,
although I can see it in the code and all flags seem to be defined
correctly (_STLP_MEMBER_TEMPLATES is defined). I'm trying to compile the
following excerpt:
1 std::stringstream str(__DATE__); // for example "Sep 16 2008"
2
3 boost::gregorian::date_input_facet facet("%b %d %Y");
4 std::locale loc(str.getloc(),facet);
5 str.imbue(loc);
6
7 boost::gregorian::date d;
8 str >> d;
The error is in line 4 and the message is that the (templated) ctor does
not exist.
Thanks for your assistance,
Pedro
--------------------------------------------------------
This message w/attachments (message) may be privileged, confidential or proprietary, and if you are not an intended recipient, please notify the sender, do not use or share it and delete it. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Merrill Lynch. Subject to applicable law, Merrill Lynch may monitor, review and retain e-communications (EC) traveling through its networks/systems. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or error-free. This message is subject to terms available at the following link: http://www.ml.com/e-communications_terms/. By messaging with Merrill Lynch you consent to the foregoing.
--------------------------------------------------------
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