Skip to content

Commit 27e7336

Browse files
committed
explicitly default/delete move/copy operators
1 parent 41875f3 commit 27e7336

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/libgetargv++.hpp

+6
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ namespace Getargv {
184184
*/
185185
auto operator[](ptrdiff_t index) const -> char&;
186186

187+
auto operator=(Argv&& other) -> Argv& = default;
188+
auto operator=(Argv& other) -> Argv& = delete;
189+
187190
/** \brief returns the number of bytes in the arguments this struct
188191
* represents.
189192
*
@@ -382,6 +385,9 @@ namespace Getargv {
382385
*/
383386
auto operator[](ptrdiff_t index) const -> char*&;
384387

388+
auto operator=(ArgvArgc&& other) -> ArgvArgc& = default;
389+
auto operator=(ArgvArgc& other) -> ArgvArgc& = delete;
390+
385391
/** \brief returns the number of arguments this struct represents
386392
*
387393
* \returns the number of arguments this struct represents

0 commit comments

Comments
 (0)