Pārlūkot izejas kodu

Forwarding instead of moving is required by R8 (#121).

main
offa pirms 6 gadiem
vecāks
revīzija
1a2c7c1b02
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      include/detail/scope_guard_base.h

+ 1
- 1
include/detail/scope_guard_base.h Parādīt failu

@@ -80,7 +80,7 @@ namespace sr::detail
scope_guard_base(scope_guard_base&& other) noexcept(std::is_nothrow_move_constructible_v<EF>
|| std::is_nothrow_copy_constructible_v<EF>)
: Strategy(other),
m_exitfunction(std::move_if_noexcept(other.m_exitfunction)),
m_exitfunction(std::forward<EF>(other.m_exitfunction)),
m_execute_on_destruction(other.m_execute_on_destruction)
{
other.release();

Notiek ielāde…
Atcelt
Saglabāt