Pārlūkot izejas kodu

Formatting.

main
offa pirms 7 gadiem
vecāks
revīzija
33d2e9c611
3 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. +2
    -0
      include/scope_exit.h
  2. +2
    -0
      include/scope_fail.h
  3. +1
    -0
      include/scope_success.h

+ 2
- 0
include/scope_exit.h Parādīt failu

{ {
namespace detail namespace detail
{ {

struct scope_exit_strategy struct scope_exit_strategy
{ {
constexpr bool should_execute() const constexpr bool should_execute() const
return true; return true;
} }
}; };

} }





+ 2
- 0
include/scope_fail.h Parādīt failu

{ {
namespace detail namespace detail
{ {

struct scope_fail_strategy struct scope_fail_strategy
{ {
bool should_execute() const bool should_execute() const


int m_uncaught_on_creation = uncaught_exceptions(); int m_uncaught_on_creation = uncaught_exceptions();
}; };

} }





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

{ {
namespace detail namespace detail
{ {

struct scope_success_strategy struct scope_success_strategy
{ {
bool should_execute() const bool should_execute() const

Notiek ielāde…
Atcelt
Saglabāt