Re: [PATCH v2 5/5] libstdc++: Implement std::layout_left_padded.

2025-09-20 Thread Luc Grosheintz
On 9/11/25 16:07, Tomasz Kaminski wrote: On Thu, Sep 11, 2025 at 1:46 PM Luc Grosheintz wrote: This commit adds a new layout layout_left_padded as standardized in N5014 but with one deviation. It includes checking of all mandates and prerequisites. It adds a purely internal feature testing

[PATCH v2 5/5] libstdc++: Implement std::layout_left_padded.

2025-09-15 Thread Luc Grosheintz
This commit adds a new layout layout_left_padded as standardized in N5014 but with one deviation. It includes checking of all mandates and prerequisites. It adds a purely internal feature testing macro padded_layouts and registers layout_left_padded in the std module. The standard mandates that th

Re: [PATCH v2 5/5] libstdc++: Implement std::layout_left_padded.

2025-09-11 Thread Luc Grosheintz
On 9/11/25 17:05, Luc Grosheintz wrote: Static checks already cover this. but what if `_M_exents is completely dynamic, e.g.   std::extents{128, 4} I see, we can constexpr if the check away for fully static extents.