I currently have something like this that works fine in Visual Studio however I get the following error in Mingw
error: specializing member '{anonymous}::Buffer<{anonymous}::VertexBufferFactory, IDirect3DVertexBuffer9*, ktVertexBuffer>::applyBuffer' requires 'template<>' syntax
void VertexBuffer::applyBuffer(uint32_t no, uint32_t stride, uint32_t offset)
^
The code is
typedef Buffer<VertexBufferFactory, ddVertexBuffer,VertexBuffer> VertexBuffer;
void VertexBuffer::applyBuffer(uint32_t no, uint32_t stride, uint32_t offset)
{
Gpu::ddSetStreamSource(no, buffer, offset, stride);
}
The template declaration of buffer is
template <class FACTORY, class BUFFER, class BASE>
class Buffer : public BASE {
}
Any suggestions on why I am getting this error and how to resolve it ?