Fix LWG#2489: mem_fn() should be noexcept
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@251257 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -69,4 +69,7 @@ int main()
|
||||
test0(std::mem_fn(&A::test0));
|
||||
test1(std::mem_fn(&A::test1));
|
||||
test2(std::mem_fn(&A::test2));
|
||||
#if __has_feature(cxx_noexcept)
|
||||
static_assert((noexcept(std::mem_fn(&A::test0))), ""); // LWG#2489
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user