Boost logo

Boost :

Subject: Re: [boost] Boost 1_58_0_b1_rc2 is available for testing
From: Stephan T. Lavavej (stl_at_[hidden])
Date: 2015-03-17 18:38:05


[Steven Watanabe]
> One of these has to fail:
> int ref(int&);
> int rref(int&&);
> boost::function<void(int)> f1(&ref);
> boost::function<void(int)> 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


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