clang-cl (4.0.0-trunk) seems yes, but vc2015 (update3) doesn't think so.
Is this implementation specific or does the standard define how lambda functions should be implemented in terms of nothrow and move assignments?
#include <type_traits>
#include <iostream>
template <typename T>
void test_nothrow_move_assignable(T&&) {
std::cout << std::boolalpha
<< std::is_nothrow_move_assignable<T>::value
<< "\n";
}
int main() {
test_nothrow_move_assignable([]{});
return 0;
}
source
share