Explicit conversion of SmallString to std::string

David Blaikie dblaikie at gmail.com
Wed Oct 15 08:12:21 PDT 2014


using the same identifier as a standard type like 'string' is probably a
bit sketchy... though I'm not sure what other names might suit

Why does SmallString need an explicit StringRef-izing function anyway (thus
freeing up the name 'str')? That seems like a reasonable implicit
conversion that'd rarely be needed to be explicit... but perhaps I'm wrong.

On Wed, Oct 15, 2014 at 2:53 AM, Yaron Keren <yaron.keren at gmail.com> wrote:

> SmallString conversion to std::string is currently done by going through a
> StringRef, S.str().str(). This patch provides a direct conversion function,
> S.string().
>
> Yaron
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141015/8b539d6c/attachment.html>


More information about the llvm-commits mailing list