Boost logo

Boost :

Subject: Re: [boost] [Review] UUID library (mini-)review starts today, November 23rd
From: Andy Tompkins (atompkins_at_[hidden])
Date: 2008-11-26 23:57:52


On Tue, 25 Nov 2008 20:05:35 -0800, "Steven Watanabe"
<watanabesj_at_[hidden]> said:
> AMDG
>
> Andy Tompkins wrote:
> >> * In Representation: Is there a reason for a .to_string() member
> >> function instead of an operator std::string()? I.e., it reduces
> >> std::string s =
> >> u.to_string() to std::string s( u );
> >>
> >
> > I tend to avoid implicit conversions. One can also use
> > boost::lexical_cast<std::string>(uuid). Again, if this list wants
> > operator std::string() and the like, I will add it.
> >
>
> I don't think an implicit conversion here would be a good idea.

I agree.

>
> In Christ, Steven Watanabe
>

Regards,
  Andy Tompkins


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