Skip to content

Commit

Permalink
Remove unnecessary [[nodiscard]] attributes in group.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoemi09 authored and Wentzell committed Apr 24, 2024
1 parent 3c84dd1 commit 33bcbb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions c++/h5/group.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ namespace h5 {
* @param delete_if_exists If true, unlink first an existing subgroup with the same name.
* @return A handle to the created subgroup.
*/
[[nodiscard]] group create_group(std::string const &key, bool delete_if_exists = true) const;
group create_group(std::string const &key, bool delete_if_exists = true) const;

/**
* @brief Create a softlink with the given key to a target with a given target key in this group.
Expand Down Expand Up @@ -160,7 +160,7 @@ namespace h5 {
* @param pl Dataset creation property list.
* @return A handle to the created dataset.
*/
[[nodiscard]] dataset create_dataset(std::string const &key, datatype ty, dataspace sp, hid_t pl) const;
dataset create_dataset(std::string const &key, datatype ty, dataspace sp, hid_t pl) const;

/**
* @brief Create a dataset with the given key, datatype and dataspace in this group.
Expand All @@ -172,7 +172,7 @@ namespace h5 {
* @param sp h5::dataspace.
* @return A handle to the created dataset.
*/
[[nodiscard]] dataset create_dataset(std::string const &key, datatype ty, dataspace sp) const;
dataset create_dataset(std::string const &key, datatype ty, dataspace sp) const;

/**
* @brief Get all the names of the subgroups in the current group.
Expand Down

0 comments on commit 33bcbb3

Please sign in to comment.