소스 검색

Move ctor made noexcept (fixes #8).

main
offa 7 년 전
부모
커밋
1aeaf4ed05
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      include/scope_guard.h

+ 2
- 2
include/scope_guard.h 파일 보기

{ {
} }


scope_guard_t(scope_guard_t&& other) : m_deleter(std::move(other.m_deleter)),
m_execute_on_destruction(other.m_execute_on_destruction)
scope_guard_t(scope_guard_t&& other) noexcept : m_deleter(std::move(other.m_deleter)),
m_execute_on_destruction(other.m_execute_on_destruction)
{ {
other.release(); other.release();
} }

Loading…
취소
저장