$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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