Declare handle::detach()

It's trivial and used at the point from which no C++ exceptions are
expected, as the handle is no longer a subject to RAAI.

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2025-01-15 15:02:45 +01:00
parent f33010e6b6
commit e432882d3b

View File

@ -1098,7 +1098,7 @@ namespace winstd
/// ///
/// \return Object handle /// \return Object handle
/// ///
handle_type detach() handle_type detach() noexcept
{ {
handle_type h = m_h; handle_type h = m_h;
m_h = invalid; m_h = invalid;