C
Charlie Zender
Hi,
I want to initialize a const with the result of a function and an
if test. Is this legal?
main(){
const std::string nvr_USER((std::getenv("USER")) ? std::getenv("USER") :
"");
}
Thanks,
Charlie
I want to initialize a const with the result of a function and an
if test. Is this legal?
main(){
const std::string nvr_USER((std::getenv("USER")) ? std::getenv("USER") :
"");
}
Thanks,
Charlie