Boost logo

Boost :

Subject: Re: [boost] [uuid] Interface
From: John Bytheway (jbytheway+boost_at_[hidden])
Date: 2008-12-22 18:27:21


Scott McMurray wrote:
> On Fri, Dec 12, 2008 at 11:44, Andy Tompkins <atompkins_at_[hidden]> wrote:
>> Here is what I see the interface looking like based on feedback
>> from the review so far. It would, of course, be split into
>> different header files.
>>
>
> I like it.
>
>> // no default constructor
>> private:
>> uuid();
>
> Great in theory, but I think it'll break
> lexical_cast<uuid>("21f7f8de-8051-5b89-8680-0195ef798b6a"), since the
> lexical_cast wants to default-construct the target type into which it
> will read.

Could the relevant lexical_cast overloads be made friends so they can
use the default constructor?

John Bytheway


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