Boost logo

Boost Users :

Subject: Re: [Boost-users] Unresolved overloaded function type with local_time and function
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-09-21 16:51:35


  AMDG

On 9/21/2010 1:30 PM, Nevin Liber wrote:
> I'm getting the dreaded "unresolved overloaded function type" error on
> the following line of code:
>
> boost::function<boost::posix_time::ptime()>
> fn(boost::posix_time::microsec_clock::local_time);
>
> If I wrap the call to local_time() in a function or a function object,
> it works without any issues. I don't see any other overloads for
> local_time().
>
> I'm sure it's something simple I'm just not seeing...

I see

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

In Christ,
Steven Watanabe


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