Hi,
I'm currently looking into getting cppunit building under Borland C++ 6.0.
It's currently failing in TestResult.cpp with the following errors:
TestResult.cpp(136): E2034 Cannot convert
'_STL::_Deque_iterator<TestListener *,_STL::_Nonconst_traits<TestListener *>
>' to 'const char *'
TestResult.cpp(136): E2342 Type mismatch in parameter '__path' (wanted
'const char *', got '_STL::_Deque_iterator<TestListener
*,_STL::_Nonconst_traits<TestListener *> >')
TestResult.cpp(136): E2227 Extra parameter in call to std::remove(const char
*)
TestResult.cpp(137): E2285 Could not find a match for
'_STL::deque<TestListener *,_STL::allocator<TestListener *>
>::erase(int,_STL::_Deque_iterator<TestListener
*,_STL::_Nonconst_traits<TestListener *> >)'
The relevant code section is:
void
TestResult::removeListener ( TestListener *listener )
{
ExclusiveZone zone( m_syncObject );
m_listeners.erase( std::remove( m_listeners.begin(),
m_listeners.end(),
listener ),
m_listeners.end());
}
Interestingly this compiles fine under the version 5 compiler, and under
version 6.0 if you enable the RogueWave STL libraries (BCB6.0 builds with
STLPort by default).
This is under version 1.9.10. Does anybody have any suggestions?
Cheers,
Steve
|