$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] hex/unhex()?
From: Olaf van der Spek (ml_at_[hidden])
Date: 2011-11-01 18:26:26
On Tue, Nov 1, 2011 at 9:29 PM, Marshall Clow <mclow.lists_at_[hidden]> wrote:
> You want something like this?
> template <typename InputIterator, typename OutputIterator>
> OutputIterator hex ( InputIterator first, InputIterator last, OutputIterator out );
>
> template <typename InputIterator, typename OutputIterator>
> OutputIterator unhex ( InputIterator first, InputIterator last, OutputIterator out );
>
> [ + range based versions ]
> [ + versions that work on char/wchar_t/short/int/long/long long, etc]
No, I'm looking for one that returns std::string.
Although the generic versions might be useful too.
How would your unhex() flag an error?
-- Olaf