From 652f14afc80b283b32eb3e955da6e270b8476af2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Wed, 23 Aug 2023 09:21:16 +0200 Subject: [PATCH] Explicit constructor for heap --- src/OpenMesh/Tools/Utils/HeapT.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenMesh/Tools/Utils/HeapT.hh b/src/OpenMesh/Tools/Utils/HeapT.hh index 817464ea..78d1728d 100644 --- a/src/OpenMesh/Tools/Utils/HeapT.hh +++ b/src/OpenMesh/Tools/Utils/HeapT.hh @@ -146,8 +146,8 @@ public: HeapT() : HeapVector() {} #if (defined(_MSC_VER) && (_MSC_VER >= 1800)) || __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__) - /// Construct with a given \c HeapIterface. - HeapT(HeapInterface _interface) + /// Construct with a given \c HeapIterface. + explicit HeapT(HeapInterface _interface) : HeapVector(), interface_(std::move(_interface)) {} #else