$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Gary Powell (powellg_at_[hidden])
Date: 2002-02-20 12:24:02
From: "Peter Dimov" <pdimov_at_[hidden]>
> template<class T> struct construct
> {
> typedef T result_type;
> result_type operator()() const { return T(); }
> template<class A1> result_type operator()(A1 a1) const { return
T(a1); }
template<class A1> result_type operator()(A1 & a1) const { return T(a1); }
> // impl-def number of additional overloads ;-)
> };
>
> bind(&construct<Foo>, _1);
bind(construct<Foo>(), _1);
Yep, that's what LL does now. Just seemed to be a hole in the language that
you could get the address of any other member function but not the
constructors.
-Gary-