[PATCH] D73640: [SmallString] Add explicit conversion to std::string
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 29 10:17:01 PST 2020
MaskRay accepted this revision.
MaskRay added inline comments.
This revision is now accepted and ready to land.
================
Comment at: llvm/include/llvm/ADT/SmallString.h:278
+ // Explicit conversion to std::string.
+ explicit operator std::string() const { return str().str(); }
----------------
The comment is redundant, because the code self explains.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73640/new/
https://reviews.llvm.org/D73640
More information about the llvm-commits
mailing list