Skip to content

Commit

Permalink
explicitly default/delete move/copy operators
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Jul 27, 2024
1 parent 41875f3 commit 27e7336
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/libgetargv++.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ namespace Getargv {
*/
auto operator[](ptrdiff_t index) const -> char&;

auto operator=(Argv&& other) -> Argv& = default;
auto operator=(Argv& other) -> Argv& = delete;

/** \brief returns the number of bytes in the arguments this struct
* represents.
*
Expand Down Expand Up @@ -382,6 +385,9 @@ namespace Getargv {
*/
auto operator[](ptrdiff_t index) const -> char*&;

auto operator=(ArgvArgc&& other) -> ArgvArgc& = default;
auto operator=(ArgvArgc& other) -> ArgvArgc& = delete;

/** \brief returns the number of arguments this struct represents
*
* \returns the number of arguments this struct represents
Expand Down

0 comments on commit 27e7336

Please sign in to comment.