Skip to content

Commit

Permalink
modifications to get maeparser building with C++20 (#76)
Browse files Browse the repository at this point in the history
Co-authored-by: Greg Landrum <[email protected]>
Co-authored-by: Ric R <[email protected]>
  • Loading branch information
3 people authored Feb 1, 2023
1 parent ce35179 commit f094cb5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions MaeBlock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ template <typename T> class IndexedProperty

public:
// Prevent copying.
IndexedProperty<T>(const IndexedProperty<T>&) = delete;
IndexedProperty<T>& operator=(const IndexedProperty<T>&) = delete;
IndexedProperty(const IndexedProperty<T>&) = delete;
IndexedProperty& operator=(const IndexedProperty<T>&) = delete;

using size_type = typename std::vector<T>::size_type;

Expand All @@ -286,14 +286,14 @@ template <typename T> class IndexedProperty
*
* The optional boost::dynamic_bitset is owned by the created object.
*/
explicit IndexedProperty<T>(std::vector<T>& data,
explicit IndexedProperty(std::vector<T>& data,
boost::dynamic_bitset<>* is_null = nullptr)
: m_data(), m_is_null(is_null)
{
m_data.swap(data);
}

~IndexedProperty<T>()
~IndexedProperty()
{
if (m_is_null != nullptr) {
delete m_is_null;
Expand Down

0 comments on commit f094cb5

Please sign in to comment.