Merge branch 'BitVector_copy_constructor' of https://github.com/Luis-Anton/Torque3D into Luis-Anton-BitVector_copy_constructor

This commit is contained in:
DavidWyand-GG 2012-11-09 13:29:33 -05:00
commit df01dd88fe

View file

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