Skip to content

Commit

Permalink
add missing noexcept to some member functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ericniebler committed Nov 25, 2024
1 parent 4e2282e commit f9bb949
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ private:
_CUDAX_TRIVIAL_HOST_API void reset() noexcept {}

/// \brief No-op.
_CUDAX_TRIVIAL_HOST_API void __release() {}
_CUDAX_TRIVIAL_HOST_API void __release() noexcept {}

/// \brief Rebinds the reference with a vtable pointer and object pointer.
_CUDAX_HOST_API void __set_ref(__vptr_for<interface_type> __vptr,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ public:

/// \brief Resets the `basic_any` object to an empty state.
/// \post `has_value() == false`
_CUDAX_HOST_API void reset()
_CUDAX_HOST_API void reset() noexcept
{
if (auto __vptr = __get_vptr())
{
Expand Down

0 comments on commit f9bb949

Please sign in to comment.