]> git.ipfire.org Git - thirdparty/gcc.git/commit
libcc1: delete copy constructor and assignment operators
authorTom Tromey <tom@tromey.com>
Tue, 4 May 2021 21:26:58 +0000 (15:26 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 5 May 2021 06:06:16 +0000 (00:06 -0600)
commitc10a3b13fec850effc68c8b4f8861158f7fa7fed
tree28e91c7827d116acb2a00a6eae6a5bcf1a0c143c
parent41f4381648feb1e5eaa27d108b21e2b95ad3739d
libcc1: delete copy constructor and assignment operators

Change libcc1 to use "= delete" for the copy constructor and
assignment operator, rather than the old approach of private methods
that are nowhere defined.

libcc1

* rpc.hh (argument_wrapper): Use delete for copy constructor.
* connection.hh (class connection): Use delete for copy
constructor.
* callbacks.hh (class callbacks): Use delete for copy constructor.
libcc1/callbacks.hh
libcc1/connection.hh
libcc1/rpc.hh