Skip to content

Commit

Permalink
gha
Browse files Browse the repository at this point in the history
  • Loading branch information
zajo committed Dec 11, 2023
1 parent 3d2a322 commit a146c9c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/boost/leaf/error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,15 +321,15 @@ namespace leaf_detail

public:

BOOST_LEAF_CONSTEXPR dynamic_allocator() noexcept:
dynamic_allocator() noexcept:
capture_list(nullptr),
err_id_(0),
last_(&first_)
{
BOOST_LEAF_ASSERT(first_ == nullptr);
}

BOOST_LEAF_CONSTEXPR dynamic_allocator( dynamic_allocator && other ) noexcept:
dynamic_allocator( dynamic_allocator && other ) noexcept:
capture_list(std::move(other)),
err_id_(other.err_id_),
last_(other.last_ == &other.first_? &first_ : other.last_)
Expand All @@ -341,7 +341,7 @@ namespace leaf_detail
}

template <class E>
BOOST_LEAF_CONSTEXPR typename std::decay<E>::type & dynamic_load(int err_id, E && e)
typename std::decay<E>::type & dynamic_load(int err_id, E && e)
{
using T = typename std::decay<E>::type;
BOOST_LEAF_ASSERT(last_ != nullptr);
Expand All @@ -353,7 +353,7 @@ namespace leaf_detail
return csn->value(err_id);
}

BOOST_LEAF_CONSTEXPR void deactivate() const noexcept
void deactivate() const noexcept
{
for_each(
[]( capture_list::node const & n )
Expand All @@ -362,12 +362,12 @@ namespace leaf_detail
} );
}

BOOST_LEAF_CONSTEXPR bool empty() const noexcept
bool empty() const noexcept
{
return last_ == &first_;
}

BOOST_LEAF_CONSTEXPR int size() const noexcept
int size() const noexcept
{
int n = 0;
for_each(
Expand Down

0 comments on commit a146c9c

Please sign in to comment.