Empty base class optimisation (EBCO) std::tuple #5004
-
Is Microsoft STL tuple empty class optimisation disabled or not implemented? What would You suggest as a cross-platform standard solution to hold members efficiently? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Not implemented. (And we can't implement that without breaking ABI; see #197.)
|
Beta Was this translation helpful? Give feedback.
Not implemented. (And we can't implement that without breaking ABI; see #197.)
[[no_unique_address]]
on other platforms and[[msvc::no_unique_address]]
on MSVC can avoid paying space for data members without requiring the elaborate base class scheme.