This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of New status.

4232. datapar::resize does not resize

Section: 29.10.4 [simd.traits] Status: New Submitter: Tim Song Opened: 2025-03-24 Last modified: 2025-03-27

Priority: Not Prioritized

View all issues with New status.

Discussion:

The wording actually requires the size to be left unchanged.

Proposed resolution:

This wording is relative to N5008.

  1. Modify 29.10.4 [simd.traits] as indicated:

    template<simd-size-type N, class V> struct resize { using type = see below; };
    

    […]

    -9- If V is a specialization of basic_simd, let Abi1 denote an ABI tag such that basic_simd<T, Abi1>::size() equals V::size()N. If V is a specialization of basic_simd_mask, let Abi1 denote an ABI tag such that basic_simd_mask<sizeof(T), Abi1>::size() equals V::size()N.