Boost logo

Boost Users :

Subject: Re: [Boost-users] Unresolved overloaded function type with local_time and function
From: Nevin Liber (nevin_at_[hidden])
Date: 2010-09-21 17:30:47


On 21 September 2010 15:51, Steven Watanabe <watanabesj_at_[hidden]> wrote:

>>     boost::function<boost::posix_time::ptime()>
>> fn(boost::posix_time::microsec_clock::local_time);

> I see
>
> template<class time_zone_type>
> static time_type local_time(shared_ptr<time_zone_type> tz_ptr);
> static time_type local_time();

Missed that one. Thanks.

(And the cast to differentiate it is
static_cast<boost::posix_time::ptime(&)()>(boost::posix_time::microsec_clock::local_time),
in case anyone else runs into this.)

-- 
 Nevin ":-)" Liber  <mailto:nevin_at_[hidden]>  (847) 691-1404

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