
On 1 November 2011 21:09, Olaf van der Spek <ml@vdspek.org> wrote:
Hi,
Does Boost have hex/unhex() that support std::string? I can't find them and I think they'd be quite handy to have.
-- Olaf
The library that I'm working on, boost.coerce, is capable of this. It's a extensible type-to-string and string-to-type conversion library and tag::hex is one of the current extensions. Please refer to http://svn.boost.org/svn/boost/sandbox/coerce/libs/coerce/example/tag.cpp for an example, and http://svn.boost.org/svn/boost/sandbox/coerce/ for the source code. It should be production stable, only the documentation is still in need of some love before it can be reviewed. If you have any questions, please don't hesitate to contact me. Kind regards, Jeroen