Boost logo

Boost :

Subject: Re: [boost] hex/unhex()?
From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2011-11-03 11:23:05


On Nov 3, 2011, at 8:11 AM, michi7x7 wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi
>
>> Okay, I'm finished. Should be as generic as it gets ;-)
>> Feel free to use it whenever you like.
>
> Marshall found a few bugs, which my MSVC didn't even notice...
> Here is a fixed version (I hope), what's still missing is a check if the
> whole input of unhex was parsed, which could be done by checking if
> first == last (thanks to spirit).

Works for me.

And for comparison, here's a non-spirit version.

-- Marshall

Marshall Clow Idio Software <mailto:mclow.lists_at_[hidden]>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki




Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk