mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-24 17:13:54 +00:00
BitVector don't have copy-constructor/operator=
This commit is contained in:
parent
394d87cd54
commit
5b033f7066
1 changed files with 15 additions and 0 deletions
|
|
@ -56,10 +56,14 @@ class BitVector
|
|||
/// Constructs a bit vector with the desired size.
|
||||
/// @note The resulting vector is not cleared.
|
||||
BitVector( U32 sizeInBits );
|
||||
|
||||
BitVector( const BitVector &r);
|
||||
|
||||
/// Destructor.
|
||||
~BitVector();
|
||||
|
||||
BitVector& operator=( const BitVector &r);
|
||||
|
||||
/// @name Size Management
|
||||
/// @{
|
||||
|
||||
|
|
@ -150,6 +154,17 @@ inline BitVector::BitVector( U32 sizeInBits )
|
|||
setSize( sizeInBits );
|
||||
}
|
||||
|
||||
inline BitVector::BitVector( const BitVector &r )
|
||||
{
|
||||
copy(r);
|
||||
}
|
||||
|
||||
inline BitVector& BitVector::operator=( const BitVector &r)
|
||||
{
|
||||
copy(r);
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline BitVector::~BitVector()
|
||||
{
|
||||
delete [] mBits;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue