以下の私のコードは機能しませんでした:
wstring config_file;
// Declare a group of options that will be
// allowed only on command line
po::options_description generic("Generic options");
generic.add_options()
("help,h", "produce help message")
("config,c", po::wvalue<wstring>(&config_file)->default_value(L"DXDrv.cfg"), "name of a file of a configuration.")
;
コンパイルはエラーで失敗しました:
d:\ repo \ a4x_ext \ minidxdriver \ testapp \ configparser \ boost \ lexical_cast.hpp(1096):エラーC2039::はの
'setg'
メンバーではありません'boost::detail::lexical_stream_limited_src<CharT,Base,Traits>'