HeapT: New optimization should compile in C++98 as well...
This commit is contained in:
@@ -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(){};
|
||||
|
||||
Reference in New Issue
Block a user