CppCoreGuidelines icon indicating copy to clipboard operation
CppCoreGuidelines copied to clipboard

Proposed specification for `gsl::dyn_array`

Open carsonRadtke opened this issue 10 months ago • 1 comments

On behalf of the Microsoft/GSL maintainers, we would like to propose a specification for gsl::dyn_array.

Resolves: https://github.com/isocpp/CppCoreGuidelines/issues/2244

See related issues:

  • isocpp/CppCoreGuidelines:
    • https://github.com/isocpp/CppCoreGuidelines/issues/1633
  • Microsoft/GSL:
    • https://github.com/microsoft/GSL/issues/1169
    • https://github.com/microsoft/GSL/issues/348
    • https://github.com/microsoft/GSL/issues/505
    • https://github.com/microsoft/GSL/issues/890

carsonRadtke avatar Mar 03 '25 17:03 carsonRadtke

Editors call: Thanks, looks good but please:

  • @GabrielDosReis add a note that by design there are no iterator/pointer-invalidating operations (other than the destructor)
  • ensure that there is no assignment (neither copy nor move)
  • add wording for move construction

hsutter avatar Apr 15 '25 17:04 hsutter