Delete unary operator&() for dynamic_bitset::reference

Reason: That's better than declaring it as private and leaving it
undefined.
This commit is contained in:
Gennaro Prota
2025-07-11 08:19:50 +02:00
parent 85678044f2
commit 4bd3dd25d6

View File

@@ -182,11 +182,11 @@ public:
// -------------------------------------------------------------------
reference( block_type & b, int pos );
//! Left undefined.
// -------------------------------------------------------------------
void operator&();
public:
//! Deleted address-of operator.
// -------------------------------------------------------------------
void operator&() = delete;
//! Copy constructor.
//!
//! Constructs a `reference` which refers to the same bit as