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:
parent
f33010e6b6
commit
e432882d3b
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user