ColinGilbert / mili

Automatically exported from code.google.com/p/mili
Boost Software License 1.0
0 stars 0 forks source link

string-utils_test.cpp and others do not compile in VS2010 #52

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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