Wow its been a long while, anyways I am coming back to doing C++ development after doing C# and .net for the last few years and am brushing up on some stuff. I am building a map of verticies and their indicies std:air<Vertex3f, int> and am having a problem. I build my map fine but when i am trying to build a buffer from the indicies in the map i am getting some strange results. The buffer is generated by building the index buffer column by column. The first column everything works great but as soon as i start to build the second column all indicies returned from the map are either 0 or incorrect. Attached is a sample showing this behavoir, for the life of me I cant figure it out.
I am testing this under Visual Studio 2008 TFS & Visual Studio 2010 Beta2 both show the exact same behavoir. This only runs as a release build, there is some problem with the map class in debug, kept failing to insert an item.