Error building arcsynthesis OpenGL Tut 01

http://www.arcsynthesis.org

I got an error building the first tutorial from 0.3.8 download.
I'm using codeblocks but not the latest version so old MingW.

In Scene.cpp I get errors about typename used outside template.

I removed typename from these lines in ctor and dtor and built the project ok.
1
2
3
4
std::for_each(m_nodes.begin(), m_nodes.end(), DeleteSecond<typename NodeMap::value_type>);
std::for_each(m_progs.begin(), m_progs.end(), DeleteSecond<typename ProgramMap::value_type>);
std::for_each(m_textures.begin(), m_textures.end(), DeleteSecond<typename TextureMap::value_type>);
std::for_each(m_meshes.begin(), m_meshes.end(), DeleteSecond<typename MeshMap::value_type>);


I know nothing about templates so is that all I had to do?

The author seems very advanced programmer so I was wondering also how a syntax mistake like this could get through or is it a C++ version thing or possibly gcc thing?



Topic archived. No new replies allowed.