Skip to content

Commit

Permalink
fix api for gcc11
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Underwood committed May 16, 2022
1 parent b3fcd0b commit c5e519b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions bindings/CXX11/adios2/cxx11/Attribute.h
Expand Up @@ -43,8 +43,8 @@ class Attribute
* attributes from IO:DefineAttribute<T> or IO:InquireAttribute<T>.
* Can be used with STL containers.
*/
Attribute<T>() = default;
~Attribute<T>() = default;
Attribute() = default;
~Attribute() = default;

/** Checks if object is valid, e.g. if( attribute ) { //..valid } */
explicit operator bool() const noexcept;
Expand Down Expand Up @@ -74,7 +74,7 @@ class Attribute
bool IsValue() const;

private:
Attribute<T>(core::Attribute<IOType> *attribute);
Attribute(core::Attribute<IOType> *attribute);
core::Attribute<IOType> *m_Attribute = nullptr;
};

Expand Down
6 changes: 3 additions & 3 deletions bindings/CXX11/adios2/cxx11/Variable.h
Expand Up @@ -139,10 +139,10 @@ class Variable
* variables from IO:DefineVariable<T> or IO:InquireVariable<T>.
* Can be used with STL containers.
*/
Variable<T>() = default;
Variable() = default;

/** Default, using RAII STL containers */
~Variable<T>() = default;
~Variable() = default;

/** Checks if object is valid, e.g. if( variable ) { //..valid } */
explicit operator bool() const noexcept;
Expand Down Expand Up @@ -389,7 +389,7 @@ class Variable
std::vector<typename Variable<T>::Info>
ToBlocksInfoMin(const MinVarInfo *coreVarInfo) const;

Variable<T>(core::Variable<IOType> *variable);
Variable(core::Variable<IOType> *variable);

std::vector<std::vector<typename Variable<T>::Info>> DoAllStepsBlocksInfo();
std::map<size_t, std::vector<typename Variable<T>::Info>>
Expand Down
8 changes: 4 additions & 4 deletions source/adios2/core/Attribute.h
Expand Up @@ -31,7 +31,7 @@ class Attribute : public AttributeBase
* Copy constructor (enforces zero-padding)
* @param other
*/
Attribute<T>(const Attribute<T> &other);
Attribute(const Attribute<T> &other);

/**
* Data array constructor
Expand All @@ -40,7 +40,7 @@ class Attribute : public AttributeBase
* @param elements
* @param allowModifications
*/
Attribute<T>(const std::string &name, const T *data, const size_t elements,
Attribute(const std::string &name, const T *data, const size_t elements,
const bool allowModification);

/**
Expand All @@ -50,10 +50,10 @@ class Attribute : public AttributeBase
* @param elements
* @param allowModifications
*/
Attribute<T>(const std::string &name, const T &data,
Attribute(const std::string &name, const T &data,
const bool allowModification);

~Attribute<T>() = default;
~Attribute() = default;

/**
* Modification of an existing attribute (array)
Expand Down

0 comments on commit c5e519b

Please sign in to comment.