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