Delete the copy constructor and the copy assignment operator of bit_appender

Reason: That's better than declaring them as private and leaving them
undefined.
This commit is contained in:
Gennaro Prota
2025-09-22 16:12:33 +02:00
parent 410068c17d
commit fd0c440888

View File

@@ -1411,11 +1411,10 @@ private:
Block mask; Block mask;
Block * current; Block * current;
// not implemented
bit_appender( const bit_appender & );
bit_appender & operator=( const bit_appender & );
public: public:
bit_appender( const bit_appender & ) = delete;
bit_appender & operator=( const bit_appender & ) = delete;
bit_appender( dynamic_bitset & r ); bit_appender( dynamic_bitset & r );
~bit_appender(); ~bit_appender();
void do_append( bool value ); void do_append( bool value );