xbmc/xbmc — comment on commit 116a70926f956e45e09c3db428f39656dd4ebe80
File:  line 0
By Phaeodaria:

You need to write a small wrapper

struct MatrixWrapper() {
MatrixWrapper( const float values[16]) { memcpy...};
MatrixWrapper( const MatrixWrapper &rhs ) { memcpy... };
MatrixWrapper &operator=( const MatrixWrapper &rhs ) { memcpy...};
operator float*() { return m_values; }
operator const float*() const { return m_values; }

float m_values[16];
}

Then you can use

std::vector m_matrices;

add a matrix with m_matrices.push_back( Matrix( float* ) );

get ptr with m_matrices.back();