From 711299a73bcad6316519eb1fc8bbf85aab60605e Mon Sep 17 00:00:00 2001 From: Luc Grosheintz Date: Thu, 9 May 2024 14:38:07 +0200 Subject: [PATCH] Make `Selection::get*` not `noexcept`. --- include/highfive/H5Selection.hpp | 8 ++++---- include/highfive/bits/H5Selection_misc.hpp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/highfive/H5Selection.hpp b/include/highfive/H5Selection.hpp index c00c66d52..27681fe7a 100644 --- a/include/highfive/H5Selection.hpp +++ b/include/highfive/H5Selection.hpp @@ -30,21 +30,21 @@ class Selection: public SliceTraits { /// \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 diff --git a/include/highfive/bits/H5Selection_misc.hpp b/include/highfive/bits/H5Selection_misc.hpp index c35b7bbf3..d1c14e930 100644 --- a/include/highfive/bits/H5Selection_misc.hpp +++ b/include/highfive/bits/H5Selection_misc.hpp @@ -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; }