|
Boost Users : |
Subject: Re: [Boost-users] Boost UUIDS: string generator is crashing
From: Andy Tompkins (atompkins_at_[hidden])
Date: 2010-07-05 20:50:06
Hi,
On Wed, 23 Jun 2010 14:02 -0600, "Carla Strembicke"
<Carla.Strembicke_at_[hidden]> wrote:
I am using the following in my program for proof of concept.
( This was extracted straight from the documentation)
boost::uuids::string_generator gen;
boost::uuids::uuid u1 =
gen("{01234567-89ab-cdef-0123456789abcdef}");
The problem is a missing dash. The line should read:
boost::uuids::uuid u1 =
gen("{01234567-89ab-cdef-0123-4567890abcdef}");
Note that there are 4 dashes, not 3.
crashing in : template <typename CharIterator>
uuid operator()(CharIterator begin, CharIterator end) const
crashing at : *it_byte = get_value(c)
Is this a bug or am I doing something wrong.
When I remove the dashes it seems to work......
Removing the dashes also works by design.
Regards,
Andy.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net