Pārlūkot izejas kodu

Returntype of get() changed to decltype(auto) (#71).

main
offa pirms 7 gadiem
vecāks
revīzija
902edaa5c8
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      include/unique_resource.h

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

@@ -232,7 +232,7 @@ namespace sr
m_execute_on_destruction = false;
}

const R& get() const noexcept
decltype(auto) get() const noexcept
{
return m_resource.get();
}

Notiek ielāde…
Atcelt
Saglabāt