[llvm] r206372 - [Allocator] Make BumpPtrAllocator movable and move assignable.

Chandler Carruth chandlerc at gmail.com
Thu Apr 17 00:33:55 PDT 2014


On Wed, Apr 16, 2014 at 3:55 PM, Duncan P. N. Exon Smith <
dexonsmith at apple.com> wrote:

> > -  BumpPtrAllocatorImpl(const BumpPtrAllocatorImpl &)
> LLVM_DELETED_FUNCTION;
> > -  void operator=(const BumpPtrAllocatorImpl &) LLVM_DELETED_FUNCTION;
> > -
>
> Why delete these?


When you provide a move constructor, they are implicitly deleted. The
existence of a move constructor without a corresponding explicit copy
constructor seems sufficiently explicit of a marker for "move only" to me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140417/ea4e63b5/attachment.html>


More information about the llvm-commits mailing list