Skip to content
Snippets Groups Projects

Fix build error:

Merged Martin Heistermann requested to merge fix-build-error into master
1 file
+ 7
7
Compare changes
  • Side-by-side
  • Inline
@@ -283,7 +283,7 @@ public:
class PropertyHandleT : public BasePropertyHandle
{
public:
explicit inline PropertyHandleT<T>( const BasePropertyHandle &_handle ) : BasePropertyHandle( _handle ) { } //!< Constructor
explicit inline PropertyHandleT( const BasePropertyHandle &_handle ) : BasePropertyHandle( _handle ) { } //!< Constructor
};
//----------------
@@ -298,15 +298,15 @@ public:
typedef typename std::vector<T>:: reference Reference; //!< These are references to T, *not* to SplatPropertyT<T>.
typedef typename std::vector<T>::const_reference ConstReference; //!< These are used because a std::vector<bool>::reference is *not* the same as a reference to bool.
public:
explicit inline SplatPropertyT<T>( const PropertyHandleT<T> &_handle, unsigned int _num ) : data_( _num ) { } //!< Constructor
explicit inline SplatPropertyT( const PropertyHandleT<T> &_handle, unsigned int _num ) : data_( _num ) { } //!< Constructor
inline Reference data( int _idx ) { return data_[ _idx ]; } //!< Access the data as reference.
inline ConstReference data( int _idx ) const { return data_[ _idx ]; } //!< Access the data as const reference.
public:
virtual inline size_t sizeOf() const override { return sizeof( T ); } //!< Get the size of type.
virtual inline const std::type_info &typeId() const override { return typeid( T ); } //!< Get the runtime type information.
private:
virtual inline ~SplatPropertyT<T>() { } //!< Destructor
virtual inline SplatPropertyT<T> *clone() const override { return new SplatPropertyT<T>( *this ); } //!< Return a deep copy of this.
virtual inline ~SplatPropertyT() { } //!< Destructor
virtual inline SplatPropertyT *clone() const override { return new SplatPropertyT<T>( *this ); } //!< Return a deep copy of this.
virtual inline void clear() override { std::vector<T>().swap( data_ ); } //!< Clear the data vector.
virtual inline void pushback() override { data_.push_back( T() ); } //!< Add one element at the end of the data vector.
virtual inline void resize( unsigned int _num ) override { data_.resize( _num ); } //!< Resize the data vector.
@@ -329,15 +329,15 @@ public:
typedef T & Reference; //!< These are references to T, *not* to CloudPropertyT<T>.
typedef const T & ConstReference; //!< These are used only out of a consistency reason to the class SplatPropertyT<T>.
public:
explicit inline CloudPropertyT<T>( const PropertyHandleT<T> &_handle ) { } //!< Constructor
explicit inline CloudPropertyT( const PropertyHandleT<T> &_handle ) { } //!< Constructor
inline Reference data() { return data_; } //!< Access the data as reference.
inline ConstReference data() const { return data_; } //!< Access the data as const reference.
public:
virtual inline size_t sizeOf() const override { return sizeof( T ); } //!< Get the size of type.
virtual inline const std::type_info &typeId() const override { return typeid( T ); } //!< Get the runtime type information.
private:
virtual inline ~CloudPropertyT<T>() { } //!< Destructor
virtual inline CloudPropertyT<T> *clone() const override { return new CloudPropertyT<T>( *this ); } //!< Return a deep copy of this.
virtual inline ~CloudPropertyT() { } //!< Destructor
virtual inline CloudPropertyT *clone() const override { return new CloudPropertyT<T>( *this ); } //!< Return a deep copy of this.
private:
void operator=( const CloudPropertyT<T> & ) = delete; //!< Disallow the assign operator. (private and *not* implemented)
private:
Loading