I want to have two options for the program to work on, the start address and end address so that the program options are as follows:
--start_address 0xc0000000 --end_address 0xffffffff
Is it possible for options_description to take such hex input? Do I have to consider the input as string and convert them to hex values. I have this at the moment
po::options_description desc("Allowed options");
desc.add_options()
("help,h", "display this help message")
("path,p", po::value<std::string>(), "Executable file path")
("start_address,s", po::value<std::string>(), "Start address")
("end_address,e", po::value<std::string>(), "End address")
;
can boost::lexical_cast do such a conversion?