|
Boost : |
Subject: Re: [boost] [Review] UUID library (mini-)review starts today, November 23rd
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-11-25 23:05:35
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.
In Christ,
Steven Watanabe
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk