Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix api for gcc11 #3250

Merged
merged 1 commit into from
Jun 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bindings/CXX11/adios2/cxx11/Attribute.h
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
12 changes: 6 additions & 6 deletions source/adios2/core/Attribute.h
Original file line number Diff line number Diff line change
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,8 +40,8 @@ class Attribute : public AttributeBase
* @param elements
* @param allowModifications
*/
Attribute<T>(const std::string &name, const T *data, const size_t elements,
const bool allowModification);
Attribute(const std::string &name, const T *data, const size_t elements,
const bool allowModification);

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

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

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