diff options
author | Andrew Pinski <quic_apinski@quicinc.com> | 2024-09-13 20:17:15 -0700 |
---|---|---|
committer | Andrew Pinski <quic_apinski@quicinc.com> | 2024-09-14 22:51:14 -0700 |
commit | d2f10fc934c3a425cf31979b1cf41fdc0f57c6d6 (patch) | |
tree | 8ec40df8cf1d6583f9cab312c36d68f96317a895 /gcc | |
parent | e07fbc9d38389cffcfdd49d9c837f29424f0b008 (diff) | |
download | gcc-d2f10fc934c3a425cf31979b1cf41fdc0f57c6d6.zip gcc-d2f10fc934c3a425cf31979b1cf41fdc0f57c6d6.tar.gz gcc-d2f10fc934c3a425cf31979b1cf41fdc0f57c6d6.tar.bz2 |
Mark the copy/move constructor/operator= of auto_bitmap as delete
Since we are written in C++11, these should be marked as delete rather
than just private.
Bootstrapped and tested on x86_64-linux-gnu.
gcc/ChangeLog:
* bitmap.h (class auto_bitmap): Mark copy/move constructor/operator=
as deleted.
Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/bitmap.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/bitmap.h b/gcc/bitmap.h index 4cad1b4..451edcf 100644 --- a/gcc/bitmap.h +++ b/gcc/bitmap.h @@ -959,10 +959,10 @@ class auto_bitmap private: // Prevent making a copy that references our bitmap. - auto_bitmap (const auto_bitmap &); - auto_bitmap &operator = (const auto_bitmap &); - auto_bitmap (auto_bitmap &&); - auto_bitmap &operator = (auto_bitmap &&); + auto_bitmap (const auto_bitmap &) = delete; + auto_bitmap &operator = (const auto_bitmap &) = delete; + auto_bitmap (auto_bitmap &&) = delete; + auto_bitmap &operator = (auto_bitmap &&) = delete; bitmap_head m_bits; }; |