Boost logo

Boost :

Subject: Re: [boost] [string_ref] string literal constructor
From: Domagoj Saric (dsaritz_at_[hidden])
Date: 2013-11-02 06:27:50


On 2.11.2013. 0:42, Michael Marcin wrote:
> I noticed string_ref doesn't have a constructor for a string literal.
> Wouldn't this save a call to strlen for a common case?

You first have to find a compiler that does not already eliminate the
strlen ;)

-- 
"What Huxley teaches is that in the age of advanced technology, 
spiritual devastation is more likely to come from an enemy with a 
smiling face than from one whose countenance exudes suspicion and hate."
Neil Postman

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