
2 Nov
2013
2 Nov
'13
10:27 a.m.
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