Skip to content

Commit

Permalink
Make Selection::get* not noexcept.
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc committed May 9, 2024
1 parent d1900cf commit 711299a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions include/highfive/H5Selection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@ class Selection: public SliceTraits<Selection> {
/// \brief getSpace
/// \return Dataspace associated with this selection
///
DataSpace getSpace() const noexcept;
DataSpace getSpace() const;

///
/// \brief getMemSpace
/// \return Dataspace associated with the memory representation of this
/// selection
///
DataSpace getMemSpace() const noexcept;
DataSpace getMemSpace() const;

///
/// \brief getDataSet
/// \return parent dataset of this selection
///
DataSet& getDataset() noexcept;
const DataSet& getDataset() const noexcept;
DataSet& getDataset();
const DataSet& getDataset() const;

///
/// \brief return the datatype of the selection
Expand Down
8 changes: 4 additions & 4 deletions include/highfive/bits/H5Selection_misc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ inline Selection::Selection(const DataSpace& memspace,
, _file_space(file_space)
, _set(set) {}

inline DataSpace Selection::getSpace() const noexcept {
inline DataSpace Selection::getSpace() const {
return _file_space;
}

inline DataSpace Selection::getMemSpace() const noexcept {
inline DataSpace Selection::getMemSpace() const {
return _mem_space;
}

inline DataSet& Selection::getDataset() noexcept {
inline DataSet& Selection::getDataset() {
return _set;
}

inline const DataSet& Selection::getDataset() const noexcept {
inline const DataSet& Selection::getDataset() const {
return _set;
}

Expand Down

0 comments on commit 711299a

Please sign in to comment.