|
Boost : |
Subject: Re: [boost] Heads up - string_ref landing
From: Yakov Galka (ybungalobill_at_[hidden])
Date: 2012-11-16 13:27:24
On Fri, Nov 16, 2012 at 7:18 PM, Yanchenko Maxim
<maximyanchenko_at_[hidden]>wrote:
> [...]
> char_range is an optimization tool, and when used with std::string it
> causes its abstraction to leak as it utilizes the hidden knowledge that the
> source std::string [...]
>
I do not see it as an optimization tool. As written in the first paragraph
of the paper it is intended to remove such nonsense in the future:
void open(const char *p, ios_base::openmode = ...);
void open(const std::string &p, ios_base::openmode = ...); // added in C++11
runtime_error(const char *p);
runtime_error(const std::string &p); // added in C++11
This discussion has already been raised here in the context of boost
program_options.
-- Yakov
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk