#include
#include
Struct the Args {
Int serialNumber;
STD: : optional
};
Struct ArgParseResults {
Bool success;
STD: : string errorMessage;
The Args Args.
};
ArgParseResults parseArgs (int arg c, char * * argv);
This is a header file, display an error
./vc - using - framestream/args. H: o: error: "optional" in the namespace "STD 'does not name a template type
STD: : optional
Don't know how to deal with, I use the makefile, STD=c + + 17, thank you very much!!!!!
CodePudding user response:
The # include & lt; Boost/optional. Hpp> Is amended as: # include & lt; Optional>CodePudding user response:
Don't you boost the include an error?CodePudding user response:
No error, this header file without errorCodePudding user response:
Originally is # include< program; Optional> , proceedings of the optional didn't find the file, then I only change to # includeCodePudding user response: