Export to GitHub

mili - issue #52

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


Posted on Jan 7, 2012 by Grumpy Camel

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'

Status: New

Labels:
Type-Defect Priority-Medium