From f094cb58c36c5cdab44c3c5ab37e054fe438ac05 Mon Sep 17 00:00:00 2001 From: Greg Landrum Date: Wed, 1 Feb 2023 20:19:17 +0100 Subject: [PATCH] modifications to get maeparser building with C++20 (#76) Co-authored-by: Greg Landrum Co-authored-by: Ric R --- MaeBlock.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MaeBlock.hpp b/MaeBlock.hpp index 70010d3..ecdbe3a 100644 --- a/MaeBlock.hpp +++ b/MaeBlock.hpp @@ -275,8 +275,8 @@ template class IndexedProperty public: // Prevent copying. - IndexedProperty(const IndexedProperty&) = delete; - IndexedProperty& operator=(const IndexedProperty&) = delete; + IndexedProperty(const IndexedProperty&) = delete; + IndexedProperty& operator=(const IndexedProperty&) = delete; using size_type = typename std::vector::size_type; @@ -286,14 +286,14 @@ template class IndexedProperty * * The optional boost::dynamic_bitset is owned by the created object. */ - explicit IndexedProperty(std::vector& data, + explicit IndexedProperty(std::vector& data, boost::dynamic_bitset<>* is_null = nullptr) : m_data(), m_is_null(is_null) { m_data.swap(data); } - ~IndexedProperty() + ~IndexedProperty() { if (m_is_null != nullptr) { delete m_is_null;