Boost parse_config_file, empty key value
问题 I am using Boost program_options to parse a config file in the standard way as shown in the multiple_sources.cpp example file of program_options. ifstream ini_file("config.ini"); po::store(po::parse_config_file(ini_file, desc, true), vm); po::notify(vm); The config.ini file however has empty key=value pairs such as: key1=value1 key2=value2 key3= key4= key5=value5 Trying to read this file results in a Boost error: boost::program_options::invalid_option_value Is there any mechanism in boost: