I extracted parts of QuantLib0.8.1 that I try to compile with CC on
CC: Sun C++ 5.8 Patch 121017-13 2008/01/02
Studio11 i think
The failure is in
"dataparsers.cpp", line 86: Error: Could not find a match for std::string::basic_string(boost::transform_iterator, boost::transform_iterator)
needed in
boost::algorithm::to_lower_copystd::string(const std::string &, const std::locale&).
the snippet from quantlib that uses this is :
std::string sub = flist[i];
if (boost::algorithm::to_lower_copy(sub) == "dd")
the function complained about from boost/algorithm/string/case_conv.hpp
//! Convert to lower case
/*!
\overload
*/
template<typename SequenceT>
inline SequenceT to_lower_copy(
const SequenceT& Input,
const std::locale& Loc=std::locale())
{
return SequenceT(
make_transform_iterator(
begin(Input),
detail::to_lowerF<
typename value_type_of<SequenceT>::type >(Loc)),
make_transform_iterator(
end(Input),
detail::to_lowerF<
typename value_type_of<SequenceT>::type >(Loc)));
}
the same version of QL/boost compile ok on x86-64-linux/g++4.1 and win32-intel10 and other combinations
any clues appreciated,
regards,