[PATCH][RFC] Make iterating over hash-map elide copying/destructing

Pedro Alves palves@redhat.com
Wed Jul 11 21:16:00 GMT 2018


On 07/11/2018 12:24 PM, Trevor Saunders wrote:
> However if we went that route we should prevent use of the
> assignment operator by declaring one explicitly and making it private but
> then not implementing it, so it at least fails to link and with some
> macros you can actually tell the compiler in c++11 its deleted and may
> not be used.

The macro already exists --- DISABLE_COPY_AND_ASSIGN in include/ansidecl.h.

Thanks,
Pedro Alves



More information about the Gcc-patches mailing list