Skip to content

Commit 19002ed

Browse files
committed
make copy constructor more normal
1 parent 7f3dc64 commit 19002ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/libgetargv++.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ namespace Getargv {
134134
* from C or C++ could change the layout of the struct, making the C function
135135
* that frees the buffer not work.
136136
*/
137-
Argv(Argv& other) = delete;
137+
Argv(const Argv& other) = delete;
138138

139139
/** \brief This is a constructor for the Argv struct representing the args of
140140
* pid, formatted as specified.
@@ -335,7 +335,7 @@ namespace Getargv {
335335
* allocated from C or C++ could change the layout of the struct, making the C
336336
* function that frees the buffers not work.
337337
*/
338-
ArgvArgc(ArgvArgc& other) = delete;
338+
ArgvArgc(const ArgvArgc& other) = delete;
339339

340340
/** \brief This is a constructor for the ArgvArgc struct representing the args
341341
* of pid.

0 commit comments

Comments
 (0)