[libc++] Add _LIBCPP_NO_UNIQUE_ADDRESS to flat_{,multi}map::value_compare (#137594)
This breaks the ABI of `flat_{,multi}map::value_compare`, but this type
has only been introduced in LLVM 20, so it should be very unlikely that
we break anybody if we back-port this now.
(cherry picked from commit ed0aa9961caa177098e9b7e69e98034d676f192e)
This commit is contained in:
parent
b8e10ca59b
commit
337beb73ab
@ -113,7 +113,7 @@ public:
|
||||
|
||||
class value_compare {
|
||||
private:
|
||||
key_compare __comp_;
|
||||
_LIBCPP_NO_UNIQUE_ADDRESS key_compare __comp_;
|
||||
_LIBCPP_HIDE_FROM_ABI value_compare(key_compare __c) : __comp_(__c) {}
|
||||
friend flat_map;
|
||||
|
||||
|
||||
@ -115,7 +115,7 @@ public:
|
||||
|
||||
class value_compare {
|
||||
private:
|
||||
key_compare __comp_;
|
||||
_LIBCPP_NO_UNIQUE_ADDRESS key_compare __comp_;
|
||||
_LIBCPP_HIDE_FROM_ABI value_compare(key_compare __c) : __comp_(__c) {}
|
||||
friend flat_multimap;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user