
Initial Comment: I use Borland C++ 6 under Windows and I am trying to use program_options library. It seems that if I add a nonhandled parameter to command line the program hangs.
For example using first.cpp and adding --unhandled to command line.
in parsers.hpp:
template<class charT> basic_parsed_options<charT> basic_command_line_parser<charT>::run() const { // Presense of parsed_options -> wparsed_options conversion // does the trick.
==== HERE! ===> return basic_parsed_options<charT>(
Is it possible that you debug further, and figure out where the hang actually happens? The library did worked on my version of borland, and I don't have Builder 6. The expected behavior in this case is an exception. Is it possible that throwing/handling the exception causes the hang? - Volodya