[Lldb-commits] [PATCH] D68317: factor out an abstract base class for File
Lawrence D'Anna via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 2 09:47:59 PDT 2019
lawrence_danna added inline comments.
================
Comment at: lldb/include/lldb/Host/File.h:377-381
+ template <typename... Args>
+ static std::shared_ptr<File> make_shared(Args... args) {
+ return std::static_pointer_cast<File>(
+ std::make_shared<NativeFile>(args...));
+ }
----------------
labath wrote:
> Please delete this stuff, and just use regular std::make_shared. (BTW, shared_ptr<Derived> is implicitly convertible to shared_ptr<Base>)
Huh, I swear when i tried that yesterday the compiler was saying it wasn't implicitly convertible. Now, it is as you say. Must have been gremlins.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68317/new/
https://reviews.llvm.org/D68317
More information about the lldb-commits
mailing list