--- VisionWorkbench-2.0_beta4.ori/src/vw/GPU/TexAlloc.cc 2009-10-23 03:50:50.000000000 +0200 +++ VisionWorkbench-2.0_beta4.ori/src/vw/GPU/TexAlloc.cc 2009-12-10 22:11:58.000000000 +0100 @@ -14,11 +14,11 @@ //############################################################ bool TexAlloc::isInit = false; - list TexAlloc::texRecycleList; + std::list TexAlloc::texRecycleList; int TexAlloc::allocatedCount = 0; int TexAlloc::allocatedSize = 0; bool TexAlloc::recylingEnabled = false; - std::map, pair > TexAlloc::textureSubstitutesMap; + std::map, std::pair > TexAlloc::textureSubstitutesMap; //############################################################# // TexAlloc: Class Functions @@ -138,7 +138,7 @@ else if(type == GPU_FLOAT32) sprintf(buffer2, "GPU_FLOAT32"); if(verbose) printf("Checking Texture Support for: format = %s, type = %s\n", buffer1, buffer2); - auto_ptr texRef(new TexObj(100, 100, format, type)); + std::auto_ptr texRef(new TexObj(100, 100, format, type)); if(!texRef->width()) { failed = true; if(verbose) @@ -172,7 +172,7 @@ found = true; outFormat = textureFormats[j_format]; outType = textureTypes[j_type]; - textureSubstitutesMap[pair(inFormat, inType)] = pair(outFormat, outType); + textureSubstitutesMap[std::pair(inFormat, inType)] = std::pair(outFormat, outType); if(verbose) { printf("[%s, %s] implemented as: ", TexFormatToString(inFormat), TexTypeToString(inType)); printf("[%s, %s]\n", TexFormatToString(outFormat), TexTypeToString(outType)); @@ -197,8 +197,8 @@ } bool TexAlloc::get_texture_substitution(Tex_Format inFormat, Tex_Type inType, Tex_Format& outFormat, Tex_Type& outType) { - map, pair >::iterator iter; - iter = textureSubstitutesMap.find(pair(inFormat, inType)); + std::map, std::pair >::iterator iter; + iter = textureSubstitutesMap.find(std::pair(inFormat, inType)); if(iter != textureSubstitutesMap.end()) { outFormat = (*iter).second.first; outType = (*iter).second.second;