//Using boost program options to read command line and config file data #include using namespace std; using namespace b
You need to declare the ip-address and port as strings when you add the options:
config.add_options() ("IPAddress,i", po::value(), "IP Address") ("Port,p", po::value(), "Port") ;