Hello I have the following problem.
1. I have the following template class.
template<typename T> class Array
{
};
2. I have another template class that inherits from Array
template<typename T> class OpenGlVertexArray : public Array<T>
{
public:
virtual OpenGlVertexArray<T>* to_2d(void)...
Hello.
I am trying to define a custom Array class using the stl.
the following code gives several compile errors.
template< typename T, typename Allocator=allocator<T> > class Array
{
public:
// typedefs.
typedef T value_type;
typedef Allocator allocator_type;
typedef Allocator::reference...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.