Boost logo

Boost Users :

Subject: Re: [Boost-users] RAD Studio XE and boost library
From: Boris Schaeling (boris_at_[hidden])
Date: 2010-12-18 12:13:45


On Thu, 16 Dec 2010 09:30:08 +0100, Christer Borgqvist
<christer.borgqvist10_at_[hidden]> wrote:

> Hi,
>
> Date and Time Formatted Input and Output
>
>
> Try to use a sample like this
>
> #include <boost/date_time/gregorian/gregorian.hpp>
> #include <iostream>
> #include <locale>
> int main()
> {
> boost::gregorian::date d(2009, 1, 7);
> boost::gregorian::date_facet *df = new
> boost::gregorian::date_facet("%A,
> %d %B %Y");
> std::cout.imbue(std::locale(std::cout.getloc(), df));
> std::cout << d << std::endl;
>
> }
>
> When compile I get
>
> [BCC32 Error] Unit1.cpp(86): E2316 'date_facet' is not a member of
> 'boost::gregorian'

Which Boost version do you use? Can you try to add another include for
boost/date_time/gregorian/gregorian_io.hpp (that's where
boost::gregorian::date_facet is defined)?

Boris


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