プログラムのオプションが次のようになるように、プログラムで動作する2つのオプション、開始アドレスと終了アドレスが必要です。
--start_address 0xc0000000 --end_address 0xffffffff
options_description
そのような16進入力を取ることは可能ですか?入力を文字列と見なして、16進値に変換する必要がありますか?私は現在これを持っています:
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")
;
boost::lexical_cast
そのような変換を行うことができますか?