瀏覽代碼

Return value of release() corrected (fixes #19).

main
offa 7 年之前
父節點
當前提交
b234a5a25d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      include/unique_resource.h

+ 1
- 1
include/unique_resource.h 查看文件

@@ -69,7 +69,7 @@ namespace sr
m_execute_on_destruction = ( strategy == invoke_it::again );
}

const Ressource& release() noexcept
Ressource release() noexcept
{
m_execute_on_destruction = false;
return m_resource;

Loading…
取消
儲存