Fixing const usage on a template function

This commit is contained in:
Sam Gateau 2014-10-09 11:10:04 -07:00
parent b0c02311c0
commit d080d6347b

View file

@ -94,7 +94,7 @@ protected:
template< typename T >
const T* read() const { return reinterpret_cast< T* > ( _data ); }
template< typename T >
T* edit() const { _stamp++; return reinterpret_cast< T* > ( _data ); }
T* edit() { _stamp++; return reinterpret_cast< T* > ( _data ); }
// Access the current version of the sysmem, used to compare if copies are in sync
inline Stamp getStamp() const { return _stamp; }