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

[libcxx] [test] nasty_mutex::operator& should return nullptr, like nasty_list 
above it.

Fixes MSVC "error C4716: 'nasty_mutex::operator&': must return a value".

http://reviews.llvm.org/D19700

Files:
  test/support/nasty_containers.hpp

Index: test/support/nasty_containers.hpp
===================================================================
--- test/support/nasty_containers.hpp
+++ test/support/nasty_containers.hpp
@@ -287,7 +287,7 @@
      nasty_mutex() _NOEXCEPT {}
      ~nasty_mutex() {}
 
-       nasty_mutex *operator& ()   { assert(false); }
+       nasty_mutex *operator& ()   { assert(false); return nullptr; }
        template <typename T>
        void operator, (const T &) { assert(false); }
 


Index: test/support/nasty_containers.hpp
===================================================================
--- test/support/nasty_containers.hpp
+++ test/support/nasty_containers.hpp
@@ -287,7 +287,7 @@
      nasty_mutex() _NOEXCEPT {}
      ~nasty_mutex() {}
 
-	nasty_mutex *operator& ()   { assert(false); }
+	nasty_mutex *operator& ()   { assert(false); return nullptr; }
 	template <typename T>
 	void operator, (const T &) { assert(false); }
 
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to