Re: [Boost-bugs] [Boost C++ Libraries] #7063: try_unhex() that doesn't throw on bad input

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7063: try_unhex() that doesn't throw on bad input
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-09-27 08:27:47


#7063: try_unhex() that doesn't throw on bad input
-------------------------------------------------------+--------------------
  Reporter: Olaf van der Spek <olafvdspek@…> | Owner: marshall
      Type: Feature Requests | Status: new
 Milestone: To Be Determined | Component: algorithm
   Version: Boost 1.51.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------------------------------+--------------------

Comment (by Olaf van der Spek <olafvdspek@…>):

 No, I was thinking of range-based input and container-based output. Like
 this:
 {{{
 std::string a = unhex("ABCD"); // may throw on bad input
 std::string b;
 if (!unhex("ABCD", b)
   return ERROR;
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7063#comment:4>
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:10 UTC