← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 4060: Use boost::shared_ptr for C++11 as well.

 

------------------------------------------------------------
revno: 4060
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Fri 2014-07-04 19:46:32 +0200
message:
  Use boost::shared_ptr for C++11 as well.
  
  It was planned to use std::shared for C++11,
  but it seems there is no sense as we use boost
  anyway.
modified:
  lib/base/Math.hpp


--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'lib/base/Math.hpp'
--- lib/base/Math.hpp	2014-07-04 17:46:32 +0000
+++ lib/base/Math.hpp	2014-07-04 17:46:32 +0000
@@ -61,18 +61,11 @@
 #include <boost/preprocessor.hpp>
 #include <boost/python/module.hpp>
 #include <boost/python/class.hpp>
-
-#ifndef CXX11
-#	include <boost/shared_ptr.hpp>
-	using boost::shared_ptr;
-#else
-	//#	include <memory>
-	//using std::shared_ptr;
-	#	include <boost/shared_ptr.hpp>
-	using boost::shared_ptr;
-#endif
-
+#include <boost/shared_ptr.hpp>
 #include <boost/foreach.hpp>
+
+using boost::shared_ptr;
+
 #ifndef FOREACH
 	#define FOREACH BOOST_FOREACH
 #endif