On Fri, Oct 25, 2002 at 04:09:01PM +0200, Lars Gullik Bjønnes wrote:
> | Lars> and instead of the STRCONV(), you would need a string(). So what
> | Lars> did you really gain? (except hiding the ugly conversion)
> >
> | Why would we need this? I have never seen that we need
> |   str = string("foo");
> | instead of
> |   str = "foo";
> >
> | So what's the problem here?
> 
> If we agree that implicit conversions is bad, all conversions need to
> be tagged with something. (and I am not adding more non-standard
> c-tors to lyxstring either.)

std::string has a constructor

 basic_string(const charT* s, const Allocator& a = Allocator());

so there is no need to add a "non-standard c-tor". I find the extra
verbosity in  str = string("foo");  plain ugly.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)

Reply via email to