Boost Users :
Subject: Re: [Boost-users] [lambda] problem with g++
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-03-20 16:53:35
Micha³ Nowotka wrote:
> following code does not compile with g++ while under vs2008 it works fine:
> lambda::bind(log, lambda::_2) );
> g++ returns following error:
> src/window.cpp:92: error: no matching function for call to
> 'bind(<unresolved overloaded function type>, const
> boost::lambda::lambda_functor<boost::lambda::placeholder<2> >&)'
> make: *** [build/window.o] Error 1
std::log is overloaded. You need to cast it to the
appropriate type. static_cast<double(*)(double>(log).
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