Re: [Boost-bugs] [Boost C++ Libraries] #1537: no value given in 'mysql_password ='

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1537: no value given in 'mysql_password ='
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-20 18:10:04


#1537: no value given in 'mysql_password ='
-------------------------------------------------------+--------------------
  Reporter: Olaf van der Spek <OlafvdSpek@…> | Owner: vladimir_prus
      Type: Bugs | Status: reopened
 Milestone: | Component: program_options
   Version: Boost 1.34.1 | Severity: Problem
Resolution: | Keywords:
-------------------------------------------------------+--------------------

Comment(by s_ochsenknecht):

 Ok, another proposal would be to store an empty value for string type
 values (also for collection of strings) and throwing a validation error
 for e.g. integer types: "invalid option value ''"

 This is probably better than storing a default constructed value, which
 could be undefined. Or in other words, what is an empty integer? undefined
 or invalid (I would prefer invalid -> exception)?

 Please comment.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/1537#comment:6>
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:01 UTC