Unresolved overloaded function type with local_time and function
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... -- Nevin ":-)" Liber <mailto:nevin@eviloverlord.com> (847) 691-1404
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
On 21 September 2010 15:51, Steven Watanabe <watanabesj@gmail.com> 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@eviloverlord.com> (847) 691-1404
participants (2)
-
Nevin Liber
-
Steven Watanabe