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

Stephan T. Lavavej via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 27 14:30:02 PDT 2016


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19622.55318.patch
Type: text/x-patch
Size: 661 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160427/1142cd5b/attachment.bin>


More information about the cfe-commits mailing list