
1 Nov
2011
1 Nov
'11
10:26 p.m.
On Tue, Nov 1, 2011 at 9:29 PM, Marshall Clow <mclow.lists@gmail.com> 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