STL_MSFT created this revision.
STL_MSFT added reviewers: EricWF, mclow.lists.
STL_MSFT added a subscriber: cfe-commits.

[libc++] Implement the member functions of a local struct.

Fixes MSVC "warning C4822: local class member function does not have a body".

http://reviews.llvm.org/D19622

Files:
  test/std/utilities/meta/meta.rel/is_nothrow_callable.pass.cpp

Index: test/std/utilities/meta/meta.rel/is_nothrow_callable.pass.cpp
===================================================================
--- test/std/utilities/meta/meta.rel/is_nothrow_callable.pass.cpp
+++ test/std/utilities/meta/meta.rel/is_nothrow_callable.pass.cpp
@@ -53,7 +53,7 @@
 // once implementations have caught up.
 void test_noexcept_function_pointers()
 {
-    struct Dummy { void foo() noexcept; static void bar() noexcept; };
+    struct Dummy { void foo() noexcept {} static void bar() noexcept {} };
 #if !defined(__cpp_noexcept_function_type)
     {
         // Check that PMF's and function pointers *work*. is_nothrow_callable 
will always


Index: test/std/utilities/meta/meta.rel/is_nothrow_callable.pass.cpp
===================================================================
--- test/std/utilities/meta/meta.rel/is_nothrow_callable.pass.cpp
+++ test/std/utilities/meta/meta.rel/is_nothrow_callable.pass.cpp
@@ -53,7 +53,7 @@
 // once implementations have caught up.
 void test_noexcept_function_pointers()
 {
-    struct Dummy { void foo() noexcept; static void bar() noexcept; };
+    struct Dummy { void foo() noexcept {} static void bar() noexcept {} };
 #if !defined(__cpp_noexcept_function_type)
     {
         // Check that PMF's and function pointers *work*. is_nothrow_callable will always
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to