Boost logo

Boost Users :

From: Éò»Û·å (useradd_at_[hidden])
Date: 2005-09-05 23:03:46


This runtime error only occurs when debug version, the release version has
no such problem. The long option description can not be printed.

My platform is vc7.1+stlport 4.62+boost 1.33, I also define the macro
_STLP_DEBUG and BOOST_LIB_DIAGNOSTIC.

Some extraction of my code:
    operatoins.add_options()
      ("difference,d", "Get all the word of mine, origin file, my file,
output file")
      ("replace,r", "Replace the wrong pinyin with the right(delete maybe
wrong chongma)"
    ", right file, origin file, new file")
      ("remove", po::value<string>(), "delete the word specified by regex
expression")
      ("merge,m", "merge the files specified")
      ("regex", "match regex")
      ("files,f", po::value< vector<string> >(), "input file");
when print "Get all the word of mine, origin file, my file, output ", a
runtime error occurs, the program terminates.

Although I can give the debug version a short description and the release
version a long description, it is boring.

The error occur in the code call
format_one()/format_description/format_paragraph
The error code is line 361, options_description.cpp:

                    if (line_begin + (line_length - indent) > par_end)
                    {
                        line_end = par_end;
                    }
                    else
                    {
                        line_end = line_begin + (line_length - indent);
                    }


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net