Skip to content

Commit f636145

Browse files
committed
CI fixes: noexcept constructor
1 parent 5fc8384 commit f636145

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

include/openPMD/IO/ADIOS/ADIOS2PreloadAttributes.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ class PreloadAdiosAttributes
7878
AttributeLocation(AttributeLocation const &other) = delete;
7979
AttributeLocation &operator=(AttributeLocation const &other) = delete;
8080

81-
AttributeLocation(AttributeLocation &&other);
82-
AttributeLocation &operator=(AttributeLocation &&other);
81+
AttributeLocation(AttributeLocation &&other) noexcept;
82+
AttributeLocation &operator=(AttributeLocation &&other) noexcept;
8383

8484
~AttributeLocation();
8585
};

src/IO/ADIOS/ADIOS2PreloadAttributes.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,14 @@ AttributeLocation::AttributeLocation(
144144
: len(len_in), offset(offset_in), dt(dt_in)
145145
{}
146146

147-
AttributeLocation::AttributeLocation(AttributeLocation &&other)
147+
AttributeLocation::AttributeLocation(AttributeLocation &&other) noexcept
148148
: len{other.len}, offset{other.offset}, dt{other.dt}, destroy{other.destroy}
149149
{
150150
other.destroy = nullptr;
151151
}
152152

153-
AttributeLocation &AttributeLocation::operator=(AttributeLocation &&other)
153+
AttributeLocation &
154+
AttributeLocation::operator=(AttributeLocation &&other) noexcept
154155
{
155156
this->len = other.len;
156157
this->offset = other.offset;

0 commit comments

Comments
 (0)