![]() LWG reflector consensus is that this was a bug in libc++. (In particular, MSVC also will fix it in their STL, soon.) Bug originally discovered by Logan Smith. Also fix `std::function<const void()>`, which should work the same way as `std::function<void()>` in terms of allowing "conversions" from non-void types. Differential Revision: https://reviews.llvm.org/D94452 |
||
---|---|---|
.. | ||
func.wrap.func.alg | ||
func.wrap.func.cap | ||
func.wrap.func.con | ||
func.wrap.func.inv | ||
func.wrap.func.mod | ||
func.wrap.func.nullptr | ||
func.wrap.func.targ | ||
derive_from.compile.fail.cpp | ||
derive_from.pass.cpp | ||
function_types.h | ||
noncopyable_return_type.pass.cpp | ||
robust_against_adl.pass.cpp | ||
types.pass.cpp |