Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-05-09 15:55:37

Stephen Gross wrote:
> I just found out about the typeof feature in g++. I'm trying to use
> the type returned by a boost::bind invocation. Is there any way to
> make the following work:
> ===============================
> struct A { int foo(); }
> typedef typeof(boost::bind(A::foo)) my_type;

boost::bind(A::foo) is not a valid expression. Try boost::bind( &A::foo,
_1 ). Member functions have an implicit 'this' first argument, and they
require &.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at