Skip to content

Commit

Permalink
Renamed guard placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalz800 committed Jul 21, 2024
1 parent 5f980b0 commit 81be2fa
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions zpp_bits.h
Original file line number Diff line number Diff line change
Expand Up @@ -3739,16 +3739,16 @@ struct bind_opaque
requires(decltype(in.remaining_data()) & data) {
(context.*Function)(data);
}) {
struct _
struct guard
{
decltype(in) archive;
decltype(in.remaining_data()) data;
constexpr ~_()
constexpr ~guard()
{
archive.position() += data.size();
}
} _{in, in.remaining_data()};
return (context.*Function)(_.data);
} guard{in, in.remaining_data()};
return (context.*Function)(guard.data);
} else {
return (context.*Function)();
}
Expand All @@ -3763,16 +3763,16 @@ struct bind_opaque
requires(decltype(in.remaining_data()) & data) {
Function(data);
}) {
struct _
struct guard
{
decltype(in) archive;
decltype(in.remaining_data()) data;
constexpr ~_()
constexpr ~guard()
{
archive.position() += data.size();
}
} _{in, in.remaining_data()};
return Function(_.data);
} guard{in, in.remaining_data()};
return Function(guard.data);
} else {
return Function();
}
Expand Down

0 comments on commit 81be2fa

Please sign in to comment.