CppCoreGuidelines
CppCoreGuidelines copied to clipboard
Proposed specification for `gsl::dyn_array`
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
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