Boost logo

Boost Users :

From: Hicham Mouline (hicham_at_[hidden])
Date: 2008-04-11 13:36:30


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::algorithm::detail::to_lowerF<char>, const char*, boost::use_default, boost::use_default>, boost::transform_iterator<boost::algorithm::detail::to_lowerF<char>, const char*, boost::use_default, boost::use_default>)

needed in

boost::algorithm::to_lower_copy<std::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,


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net