HeapT: New optimization should compile in C++98 as well...

This commit is contained in:
Hans-Christian Ebke
2015-11-23 21:16:34 +01:00
parent 422b3dc62e
commit 201dee45fb

View File

@@ -79,7 +79,9 @@
#include "Config.hh" #include "Config.hh"
#include <vector> #include <vector>
#include <OpenMesh/Core/System/omstream.hh> #include <OpenMesh/Core/System/omstream.hh>
#if __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__)
#include <utility> #include <utility>
#endif
//== NAMESPACE ================================================================ //== NAMESPACE ================================================================
@@ -148,11 +150,18 @@ public:
/// Constructor /// Constructor
HeapT() : HeapVector() {} HeapT() : HeapVector() {}
#if __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__)
/// Construct with a given \c HeapIterface. /// Construct with a given \c HeapIterface.
HeapT(HeapInterface _interface) HeapT(HeapInterface _interface)
: HeapVector(), interface_(std::move(_interface)) : HeapVector(), interface_(std::move(_interface))
{} {}
#else
/// Construct with a given \c HeapIterface.
HeapT(const HeapInterface &_interface)
: HeapVector(), interface_(_interface)
{}
#endif
/// Destructor. /// Destructor.
~HeapT(){}; ~HeapT(){};