http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48313
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |UNCONFIRMED
CC| |jason at gcc dot gnu.org
Component|libstdc++ |c++
Summary|std::bind with template |[C++0] std::bind with
|function |template function
Ever Confirmed|1 |0
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-03-28
17:02:14 UTC ---
Actually no, that paragraph doesn't apply because P is a reference type not
function type.
Jason should the call to f(h<int>) be accepted here?
template<typename F>
void f(F&&) { }
void g() { }
template<typename T> void h() { }
int main()
{
f( g ); // OK
void (&p)() = h<int>;
f( p ); // OK
f( h<int> ); // ???
}