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>
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;
};