|
Boost Users : |
Subject: Re: [Boost-users] [boost.typeof] Using boost::bind with BOOST_AUTO
From: Roberto Giménez (chilabot_at_[hidden])
Date: 2009-06-04 18:00:19
I've registered bind:
#include <boost/typeof/typeof.hpp>
#include <boost/bind.hpp>
#include <iostream>
#include <typeinfo>
void test()
{
}
BOOST_TYPEOF_REGISTER_TEMPLATE(boost::_bi::bind_t, 3);
int main(int argc, char** argv)
{
typedef BOOST_TYPEOF_TPL(boost::bind(&test)) Type;
std::cout << typeid(Type).name() << std::endl;
}
But this prints 'int', but should be: boost::_bi::bind_t<void, void(*)(),
boost::_bi::list0>
What's wrong?
"Steven Watanabe" <watanabesj_at_[hidden]> escribió en el mensaje
news:4A2826F2.4060704_at_providere-consulting.com...
AMDG
Roberto Giménez wrote:
> <snip>
>
> Does BOOST_AUTO supports boost::bind?
In emulation mode, Boost.Typeof only has builtin support for
standard and built in types. Other types need to be registered.
In Christ,
Steven Watanabe
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