Re: [Boost-bugs] [Boost C++ Libraries] #773: program_options find assert fails with multibyte characters

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #773: program_options find assert fails with multibyte characters
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-12-06 16:54:16


#773: program_options find assert fails with multibyte characters
---------------------+------------------------------------------------------
  Reporter: nobody | Owner: vladimir_prus
      Type: Bugs | Status: reopened
 Milestone: | Component: program_options
   Version: None | Severity: Problem
Resolution: | Keywords:
---------------------+------------------------------------------------------

Comment(by s_ochsenknecht):

 Would it help to replace:

 {{{assert(n == name.size()-2);}}}

 with:
 {{{assert(n == (name.size() - 2*sizeof(std::string::char_type)));}}}

 Can somebody try that out?

 Cheers,
 Sascha

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/773#comment:8>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC