The line attempting to add_options() of type std::optional<string> results in a compile error. does boost::program_options not support this type? how are optional options managed w/ boost::program_options?
#include <iostream>
#include <optional>
using namespace std;
#include <boost\program_options.hpp>
using namespace boost;
int main(int argc, const char* argv[])
{
cout << "Hello World\n" << boolalpha;
program_options::options_description options_description("options");
options_description.add_options()
("help", "please help me get this code to compile w/o error . the line below needs to be commented out for a clean compile . does boost not permit an options optional<> type ? Thank You Kindly")
("optional string", program_options::value<std::optional<string>>, "this option is optional")
;
}
expected clean compile and boost::program_options to support std::optional<> type