From 27e7336943de3bd278624117730e75e1a2fd8225 Mon Sep 17 00:00:00 2001 From: Camden Narzt Date: Fri, 26 Jul 2024 18:56:45 -0600 Subject: [PATCH] explicitly default/delete move/copy operators --- include/libgetargv++.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/libgetargv++.hpp b/include/libgetargv++.hpp index f877724..470eb22 100644 --- a/include/libgetargv++.hpp +++ b/include/libgetargv++.hpp @@ -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. * @@ -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