• [^] # Re: What you see is not what you get

    Posté par (site web personnel) . En réponse à la dépêche C++ se court-circuite le constructeur de copie. Évalué à 1. Dernière modification le 12 décembre 2016 à 19:32.

    Après une petite recherche, j'ai trouvé ce chapitre :
    https://wg21.link/p0096#recs.removed

    3.9 Features published and later removed

    3.9.1 Features removed from C++14

    Features in the first CD of C++14, subsequently removed to a Technical Specification

    TS Title
    N3639 Runtime-sized arrays with automatic storage duration
    N3672 A proposal to add a utility class to represent optional objects
    N3662 C++ Dynamic Arrays

    The intention is that an implementation which provides runtime-sized arrays as specified in the first CD should define __cpp_runtime_arrays as 201304. The expectation is that a later document specifying runtime-sized arrays will specify a different value for __cpp_runtime_arrays.

    Donc ni les VLA, ni les std::dynarray, n'ont été intégrés au final dans C++14 (ni d'ailleurs dans C++17).

    Notons que std::optional a été adopté pour C++14, puis retiré, et en ce moment il est à nouveau adopté pour C++17, malgré de vives polémiques... Une dépêche sur ce sujet est prévue pour l'année prochaine ;-)

    Commentaire sous licence Creative Commons Zero CC0 1.0 Universal (Public Domain Dedication)