M
marco_segurini
Hi,
At the moment I am using Visual Studio 2005 beta 1.
The following program does not compile using the debug configuration
setting the "Disable Language Extensions" flag to "Yes(/Za)" while
using the release configuration the build has no problem.
Setting "Disable Language Extensions" flag to "No" I have no problem
in both debug/release configurations.
TIA.
Marco.
#include <map>
int main()
{
std::map<int, int> Map;
std::map<int, int>::const_iterator iter = Map.find(0);
if (iter != Map.end())
return iter->second;
return 0;
}
------ Rebuild All started: Project: MapStandard, Configuration: Debug
Win32 ------
Deleting intermediate and output files for project 'MapStandard',
configuration 'Debug|Win32'
Compiling...
MapStandard.cpp
c:\Programmi\Microsoft Visual Studio 8\VC\include\xtree(239) : error
C2065: '_Mycont' : undeclared identifier
c:\Programmi\Microsoft Visual Studio 8\VC\include\xtree(236) :
while compiling class template member function 'const
std:air<_Ty1,_Ty2> &std::_Tree<_Traits>::const_iterator:perator
*(void) const'
with
[
_Ty1=const int,
_Ty2=int,
_Traits=std::_Tmap_traits<int,int,std::less<int>,std::allocator<std:air<const
int,int>>,false>
]
e:\Project C++ NET
2005\Prove\MapStandard\MapStandard\MapStandard.cpp(7) : see reference
to class template instantiation 'std::_Tree<_Traits>::const_iterator'
being compiled
with
[
_Traits=std::_Tmap_traits<int,int,std::less<int>,std::allocator<std:air<const
int,int>>,false>
]
Build log was saved at "file://e:\Project C++ NET
2005\Prove\MapStandard\MapStandard\Debug\BuildLog.htm"
MapStandard - 1 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
At the moment I am using Visual Studio 2005 beta 1.
The following program does not compile using the debug configuration
setting the "Disable Language Extensions" flag to "Yes(/Za)" while
using the release configuration the build has no problem.
Setting "Disable Language Extensions" flag to "No" I have no problem
in both debug/release configurations.
TIA.
Marco.
#include <map>
int main()
{
std::map<int, int> Map;
std::map<int, int>::const_iterator iter = Map.find(0);
if (iter != Map.end())
return iter->second;
return 0;
}
------ Rebuild All started: Project: MapStandard, Configuration: Debug
Win32 ------
Deleting intermediate and output files for project 'MapStandard',
configuration 'Debug|Win32'
Compiling...
MapStandard.cpp
c:\Programmi\Microsoft Visual Studio 8\VC\include\xtree(239) : error
C2065: '_Mycont' : undeclared identifier
c:\Programmi\Microsoft Visual Studio 8\VC\include\xtree(236) :
while compiling class template member function 'const
std:air<_Ty1,_Ty2> &std::_Tree<_Traits>::const_iterator:perator
*(void) const'
with
[
_Ty1=const int,
_Ty2=int,
_Traits=std::_Tmap_traits<int,int,std::less<int>,std::allocator<std:air<const
int,int>>,false>
]
e:\Project C++ NET
2005\Prove\MapStandard\MapStandard\MapStandard.cpp(7) : see reference
to class template instantiation 'std::_Tree<_Traits>::const_iterator'
being compiled
with
[
_Traits=std::_Tmap_traits<int,int,std::less<int>,std::allocator<std:air<const
int,int>>,false>
]
Build log was saved at "file://e:\Project C++ NET
2005\Prove\MapStandard\MapStandard\Debug\BuildLog.htm"
MapStandard - 1 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========