string-utils_test.cpp and others do not compile in VS2010
GoogleCodeExporter opened this issue · comments
Google Code Exporter commented
the "using namespace mili" and "using namespace std" is making an ambiguous
symbol. There should be extra care because the namespace mili could not exists
if MILI_NAMESPACE is not defined)
1>h:\projects\mili\tests\string-utils_test.cpp(75): error C2872: '_Count' :
ambiguous symbol
1> could be 'c:\program files (x86)\microsoft visual studio
10.0\vc\include\algorithm(143) : iterator_traits<_Iter>::difference_type
std::_Count(_InIt,_InIt,const _Ty &)'
1> or 'h:\projects\mili\mili\string_utils.h(345) : mili::_Count'
1>h:\projects\mili\tests\string-utils_test.cpp(75): error C2780:
'iterator_traits<_Iter>::difference_type std::_Count(_InIt,_InIt,const _Ty &)'
: expects 3 arguments - 1 provided
1> c:\program files (x86)\microsoft visual studio
10.0\vc\include\algorithm(143) : see declaration of 'std::_Count'
Original issue reported on code.google.com by esteban....@gmail.com
on 7 Jan 2012 at 10:05