Boost logo

Boost Users :

Subject: [Boost-users] [boost.typeof] Using boost::bind with BOOST_AUTO
From: Roberto Giménez (chilabot_at_[hidden])
Date: 2009-06-04 11:37:13


I have the following code:

#include <boost/typeof/typeof.hpp>
#include <boost/bind.hpp>

void test()
{
}

int main(int argc, char** argv)
{
    BOOST_AUTO(a, boost::bind(&test));
}

But when I try to compile, I get errors:

CC -m64 -erroff=wvarhidemem,hidevf,hidevfinvb -errtags=yes
 -library=stlport4 -mt -c -g -I/home/gimenero/include -o
 build/Debug/Sun12-Solaris-Sparc/main.o main.cc
CC -m64 -erroff=wvarhidemem,hidevf,hidevfinvb -errtags=yes
 -library=stlport4 -mt -c -g -I/home/gimenero/include -o
 build/Debug/Sun12-Solaris-Sparc/main.o main.cc
"main.cc", line 11: Error, nomatchoverin: Could not find a match for
 boost::type_of::encode<boost::type_of::V, boost::type_of::T>
 (boost::_bi::bind_t<void, void(*)(), boost::_bi::list0>)
 needed in main(int, char**).
"main.cc", line 11: Error, nomatchoverin: Could not find a match for
 boost::type_of::encode<boost::type_of::V, boost::type_of::T>
 (boost::_bi::bind_t<void, void(*)(), boost::_bi::list0>)
 needed in main(int, char**).
"main.cc", line 11: Error, nomatchoverin: Could not find a match for
 boost::type_of::encode<boost::type_of::V, boost::type_of::T>
 (boost::_bi::bind_t<void, void(*)(), boost::_bi::list0>)
 needed in main(int, char**).
... many times.

Does BOOST_AUTO supports boost::bind?


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