|
Boost Users : |
Subject: [Boost-users] [Bind] Unresolved overloaded function type
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2011-08-19 04:37:07
Hi All
Can anyone tell me how to fix this? It's fine with one Fedora/Boost version
combination, but not with another!
#include <algorithm>
#include <boost/bind.hpp>
enum X { };
int main( )
{
boost::bind<const X &>( std::max<X>, _1, _2 );
}
> g++ -c a.cpp
a.cpp: In function 'int main()':
a.cpp:8: error: no matching function for call to 'bind(<unresolved
overloaded function type>, boost::arg<1>&, boost::arg<2>&)'
Thx
- Rob.
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