Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78277 - trunk/libs/thread/test/threads/thread/constr
From: vicente.botet_at_[hidden]
Date: 2012-04-30 12:03:32


Author: viboes
Date: 2012-04-30 12:03:30 EDT (Mon, 30 Apr 2012)
New Revision: 78277
URL: http://svn.boost.org/trac/boost/changeset/78277

Log:
Thread: warning removal
Text files modified:
   trunk/libs/thread/test/threads/thread/constr/FArgs_pass.cpp | 6 ++++++
   trunk/libs/thread/test/threads/thread/constr/F_pass.cpp | 6 ++++++
   2 files changed, 12 insertions(+), 0 deletions(-)

Modified: trunk/libs/thread/test/threads/thread/constr/FArgs_pass.cpp
==============================================================================
--- trunk/libs/thread/test/threads/thread/constr/FArgs_pass.cpp (original)
+++ trunk/libs/thread/test/threads/thread/constr/FArgs_pass.cpp 2012-04-30 12:03:30 EDT (Mon, 30 Apr 2012)
@@ -27,6 +27,8 @@
 
 #if defined _GLIBCXX_THROW
 void* operator new(std::size_t s) _GLIBCXX_THROW (std::bad_alloc)
+#elif defined BOOST_MSVC
+void* operator new(std::size_t s)
 #else
 void* operator new(std::size_t s) throw (std::bad_alloc)
 #endif
@@ -37,7 +39,11 @@
   return std::malloc(s);
 }
 
+#if defined BOOST_MSVC
+void operator delete(void* p)
+#else
 void operator delete(void* p) throw ()
+#endif
 {
   std::cout << __FILE__ << ":" << __LINE__ << std::endl;
   std::free(p);

Modified: trunk/libs/thread/test/threads/thread/constr/F_pass.cpp
==============================================================================
--- trunk/libs/thread/test/threads/thread/constr/F_pass.cpp (original)
+++ trunk/libs/thread/test/threads/thread/constr/F_pass.cpp 2012-04-30 12:03:30 EDT (Mon, 30 Apr 2012)
@@ -27,6 +27,8 @@
 
 #if defined _GLIBCXX_THROW
 void* operator new(std::size_t s) _GLIBCXX_THROW (std::bad_alloc)
+#elif defined BOOST_MSVC
+void* operator new(std::size_t s)
 #else
 void* operator new(std::size_t s) throw (std::bad_alloc)
 #endif
@@ -37,7 +39,11 @@
   return std::malloc(s);
 }
 
+#if defined BOOST_MSVC
+void operator delete(void* p)
+#else
 void operator delete(void* p) throw ()
+#endif
 {
   std::cout << __FILE__ << ":" << __LINE__ << std::endl;
   std::free(p);


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk