Boost logo

Boost :

From: Christopher Currie (christopher_at_[hidden])
Date: 2003-11-20 16:31:10


Peter Dimov wrote:
> template<class F> void bind(F f);
> template<class R, class T> void bind(R T::* pm) {}
>
> struct X { int i; };
>
> int main() { bind(&X::i); }
>
> If it chooses bind(F f) and fails to link, then that's another bug, one that
> we can "work around" by disabling data member pointer support on Sun CC. I'm
> not sure that we need a new macro, though, this seems pretty Sun-specific.

Unfortunately(?), this case compiles and links just fine, so there's
something else at work. I've been trying to narrow down a test case for
the bind_test failure, but it's not immediately obvious to me which
bind<> overload the compiler is actually selecting.

Christopher


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk