Skip to content
  1. Nov 09, 2013
    • Chandler Carruth's avatar
      Add a polymorphic_ptr<T> smart pointer data type. It's a somewhat silly · 64b05560
      Chandler Carruth authored
      unique ownership smart pointer which is *deep* copyable by assuming it
      can call a T::clone() method to allocate a copy of the owned data.
      
      This is mostly useful with containers or other collections of uniquely
      owned data in C++98 where they *might* copy. With C++11 we can likely
      remove this in favor of move-only types and containers wrapped around
      those types.
      
      llvm-svn: 194315
      64b05560
Loading