Skip to content

Commit

Permalink
Add [[no_unique_address]] to the data members of the adaptors in
Browse files Browse the repository at this point in the history
view_adaptor.hpp.

Fixes #65.
  • Loading branch information
tzlaine committed Oct 24, 2024
1 parent e0ff7f6 commit 2d001de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/boost/stl_interfaces/view_adaptor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ namespace boost { namespace stl_interfaces {
std::get<I>(((T &&) this_).bound_args_)...);
}

Func f_;
[[no_unique_address]] Func f_;
std::tuple<CapturedArgs...> bound_args_;
};

Expand Down Expand Up @@ -261,7 +261,7 @@ namespace boost { namespace stl_interfaces {
}

private:
F f_;
[[no_unique_address]] F f_;
};
//]

Expand Down Expand Up @@ -322,7 +322,7 @@ namespace boost { namespace stl_interfaces {
}

private:
F f_;
[[no_unique_address]] F f_;
};
//]

Expand Down

0 comments on commit 2d001de

Please sign in to comment.