Closed battaglia01 closed 1 year ago
There is arg::args()
which returns the current command-line argument. Various modules also have functions which parse the command-line arguments for the given modules, these functions are usually called readArgs
but sometimes just args
. Seems other compilers see using namespace arg;
and assume that args
is arg::args()
while the Mac compiler assumes rulegen::args
(since we are in module rulegen
).
Anyway, I have noticed this problem in meantime and fixed it by explicitly specifying arg::args()
.
Trying to
make
on a Mac M1 and am getting two different errors where it can't convert from int to std::string:Looking at the source, it seems there are several different functions called
args()
, most of which have anint
return type except for the one incommandline.cpp
which should return something like aconst string&
. What could cause this?