boost::algorithm + SunStudio + QuantLib

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

boost::algorithm + SunStudio + QuantLib

finjulhich

I extracted parts of QuantLib0.8.1 that I try to compile with CC on
CC: Sun C++ 5.9 SunOS_sparc 2007/05/03
Studio12

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,


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: boost::algorithm + SunStudio + QuantLib

Luigi Ballabio
On Fri, 2008-04-25 at 10:38 +0200, MM wrote:
> I extracted parts of QuantLib0.8.1 that I try to compile with CC on
> CC: Sun C++ 5.9 SunOS_sparc 2007/05/03
> Studio12
>
>
> 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>)

Strange. Does the std::string in your standard library have a
constructor taking two iterators?

Luigi



--

fix, n.,v.
What one does when a problem has been reported too many times
to be ignored.
-- the Jargon file



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users