Boost logo

Boost Users :

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


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_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