Commit 201dee45 authored by Hans-Christian Ebke's avatar Hans-Christian Ebke

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

parent 422b3dc6
Pipeline #92 passed with stage
...@@ -79,7 +79,9 @@ ...@@ -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: ...@@ -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(){};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment