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:
Marshall Clow
2015-10-25 20:12:16 +00:00
parent 8997b87133
commit fb7b97cfbb
3 changed files with 7 additions and 4 deletions

View File

@@ -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
}