17 Mar
2015
17 Mar
'15
10:38 p.m.
[Steven Watanabe]
One of these has to fail: int ref(int&); int rref(int&&); boost::function
f1(&ref); boost::function f2(&rref); I don't think there's any strong reason to support one over the other
The Standard says that f1 is ill-formed for std::function (and this is properly rejected by my overhauled <functional> in VC 2015; I'd assume that libstdc++ and libc++ also reject). STL