Hi Luigi,
There are a lot of compilation errors, I don’t mind making the change. I have sent to mailing list, I may get error. Please how about the boost::bind error below ? ql\termstructures\credit\hazardratestructure.cpp(84): error C2668: 'boost::bind' : ambiguous call to overloaded function 1> C:\NotBackedUp\boost_1_47\boost/bind/bind_mf_cc.hpp(54): could be 'boost::_bi::bind_t<R,F,L> boost::bind<QuantLib::Real,QuantLib::HazardRateStructure,QuantLib::Time,const QuantLib::HazardRateStructure*,boost::arg<I>>(R (__thiscall QuantLib::HazardRateStructure::* )(B1) const,A1,A2)' 1> with 1> [ 1> R=QuantLib::Real, 1> F=boost::_mfi::cmf1<QuantLib::Real,QuantLib::HazardRateStructure,QuantLib::Time>, 1> L=boost::_bi::list2<boost::_bi::value<const QuantLib::HazardRateStructure *>,boost::arg<1>>, 1> I=1, 1> B1=QuantLib::Time, 1> A1=const QuantLib::HazardRateStructure *, 1> A2=boost::arg<1> 1> ] 1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xxbind1(552): or 'std::tr1::_Bind<_Result_type,_Ret,_BindN> std::tr1::bind<QuantLib::Real,QuantLib::HazardRateStructure,QuantLib::Time,const QuantLib::HazardRateStructure*,boost::arg<I>>(_Rx (__thiscall QuantLib::HazardRateStructure::* const )(_Farg1) const,_Arg0,_Arg1)' 1> with 1> [ 1> _Result_type=QuantLib::Real, 1> _Ret=QuantLib::Real, 1> _BindN=std::tr1::_Bind2<std::tr1::_Callable_pmf<QuantLib::Real (__thiscall QuantLib::HazardRateStructure::* const )(QuantLib::Time) const,QuantLib::HazardRateStructure,false>,const QuantLib::HazardRateStructure *,boost::arg<1>>, 1> I=1, 1> _Rx=QuantLib::Real, 1> _Farg1=QuantLib::Time, 1> _Arg0=const QuantLib::HazardRateStructure *, 1> _Arg1=boost::arg<1> 1> ] 1> while trying to match the argument list '(QuantLib::Real (__thiscall QuantLib::HazardRateStructure::* )(QuantLib::Time) const, const QuantLib::HazardRateStructure *const , boost::arg<I>)' 1> with 1> [ 1> I=1 1> ] Regards Theo -----Original Message----- From: Luigi Ballabio [mailto:[hidden email]] Sent: Thursday, 8 May 2014 8:26 PM To: Boafo, Theophilus Cc: Ballabio Luigi Subject: Re: FW: Re: boost::shared_ptr' Replace the ambiguous 'shared_ptr' in fdmbatesop.cpp with 'boost::shared_ptr'. Luigi P.S. Please use the mailing list. Questions can benefit others, and I don't answer any faster to personal mail. On Thu, May 8, 2014 at 2:01 PM, Boafo, Theophilus <[hidden email]> wrote: > Hi Luigi, > > Please sorry about approaching you like this, am really desperate to > fix this compile error. > > I have this error in an old library now opened in VS2010. Its > Quantlib-1.2.1, how do I fix this, I have spent ours trying to > resolve, no joy. > > 1>ql\methods\finitedifferences\operators\fdmbatesop.cpp(38): error C2872: > 'shared_ptr' : ambiguous symbol > > 1> could be > 'C:\NotBackedUp\boost_1_47\boost/smart_ptr/shared_ptr.hpp(165) : > boost::shared_ptr' > > 1> or 'C:\Program Files (x86)\Microsoft Visual Studio > 10.0\VC\include\memory(1418) : std::tr1::shared_ptr' > > Using boost_1_51. > > Regards > > Theo > > > > > > "This e-mail and any attachments to it (the "Communication") is, > unless otherwise stated, confidential, may contain copyright material > and is for the use only of the intended recipient. If you receive the > Communication in error, please notify the sender immediately by return > e-mail, delete the Communication and the return e-mail, and do not > read, copy, retransmit or otherwise deal with it. Any views expressed > in the Communication are those of the individual sender only, unless > expressly stated to be those of Australia and New Zealand Banking > Group Limited ABN 11 005 357 522, or any of its related entities > including ANZ Bank New Zealand Limited (together "ANZ"). ANZ does not > accept liability in connection with the integrity of or errors in the > Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." -- <https://implementingquantlib.blogspot.com> <https://twitter.com/lballabio> "This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ Bank New Zealand Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." ------------------------------------------------------------------------------ Is your legacy SCM system holding you back? Join Perforce May 7 to find out: • 3 signs your SCM is hindering your productivity • Requirements for releasing software faster • Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Same problem as before. Add "boost::" to the ambiguous name (in this
case, "bind"). Luigi On Thu, May 8, 2014 at 2:36 PM, Boafo, Theophilus <[hidden email]> wrote: > Hi Luigi, > > There are a lot of compilation errors, I don’t mind making the change. I have sent to mailing list, I may get error. > > Please how about the boost::bind error below ? > > ql\termstructures\credit\hazardratestructure.cpp(84): error C2668: 'boost::bind' : ambiguous call to overloaded function > 1> C:\NotBackedUp\boost_1_47\boost/bind/bind_mf_cc.hpp(54): could be 'boost::_bi::bind_t<R,F,L> boost::bind<QuantLib::Real,QuantLib::HazardRateStructure,QuantLib::Time,const QuantLib::HazardRateStructure*,boost::arg<I>>(R (__thiscall QuantLib::HazardRateStructure::* )(B1) const,A1,A2)' > 1> with > 1> [ > 1> R=QuantLib::Real, > 1> F=boost::_mfi::cmf1<QuantLib::Real,QuantLib::HazardRateStructure,QuantLib::Time>, > 1> L=boost::_bi::list2<boost::_bi::value<const QuantLib::HazardRateStructure *>,boost::arg<1>>, > 1> I=1, > 1> B1=QuantLib::Time, > 1> A1=const QuantLib::HazardRateStructure *, > 1> A2=boost::arg<1> > 1> ] > 1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xxbind1(552): or 'std::tr1::_Bind<_Result_type,_Ret,_BindN> std::tr1::bind<QuantLib::Real,QuantLib::HazardRateStructure,QuantLib::Time,const QuantLib::HazardRateStructure*,boost::arg<I>>(_Rx (__thiscall QuantLib::HazardRateStructure::* const )(_Farg1) const,_Arg0,_Arg1)' > 1> with > 1> [ > 1> _Result_type=QuantLib::Real, > 1> _Ret=QuantLib::Real, > 1> _BindN=std::tr1::_Bind2<std::tr1::_Callable_pmf<QuantLib::Real (__thiscall QuantLib::HazardRateStructure::* const )(QuantLib::Time) const,QuantLib::HazardRateStructure,false>,const QuantLib::HazardRateStructure *,boost::arg<1>>, > 1> I=1, > 1> _Rx=QuantLib::Real, > 1> _Farg1=QuantLib::Time, > 1> _Arg0=const QuantLib::HazardRateStructure *, > 1> _Arg1=boost::arg<1> > 1> ] > 1> while trying to match the argument list '(QuantLib::Real (__thiscall QuantLib::HazardRateStructure::* )(QuantLib::Time) const, const QuantLib::HazardRateStructure *const , boost::arg<I>)' > 1> with > 1> [ > 1> I=1 > 1> ] > > Regards > > Theo > > -----Original Message----- > From: Luigi Ballabio [mailto:[hidden email]] > Sent: Thursday, 8 May 2014 8:26 PM > To: Boafo, Theophilus > Cc: Ballabio Luigi > Subject: Re: FW: Re: boost::shared_ptr' > > Replace the ambiguous 'shared_ptr' in fdmbatesop.cpp with 'boost::shared_ptr'. > > Luigi > > P.S. Please use the mailing list. Questions can benefit others, and I don't answer any faster to personal mail. > > > On Thu, May 8, 2014 at 2:01 PM, Boafo, Theophilus <[hidden email]> wrote: >> Hi Luigi, >> >> Please sorry about approaching you like this, am really desperate to >> fix this compile error. >> >> I have this error in an old library now opened in VS2010. Its >> Quantlib-1.2.1, how do I fix this, I have spent ours trying to >> resolve, no joy. >> >> 1>ql\methods\finitedifferences\operators\fdmbatesop.cpp(38): error C2872: >> 'shared_ptr' : ambiguous symbol >> >> 1> could be >> 'C:\NotBackedUp\boost_1_47\boost/smart_ptr/shared_ptr.hpp(165) : >> boost::shared_ptr' >> >> 1> or 'C:\Program Files (x86)\Microsoft Visual Studio >> 10.0\VC\include\memory(1418) : std::tr1::shared_ptr' >> >> Using boost_1_51. >> >> Regards >> >> Theo >> >> >> >> >> >> "This e-mail and any attachments to it (the "Communication") is, >> unless otherwise stated, confidential, may contain copyright material >> and is for the use only of the intended recipient. If you receive the >> Communication in error, please notify the sender immediately by return >> e-mail, delete the Communication and the return e-mail, and do not >> read, copy, retransmit or otherwise deal with it. Any views expressed >> in the Communication are those of the individual sender only, unless >> expressly stated to be those of Australia and New Zealand Banking >> Group Limited ABN 11 005 357 522, or any of its related entities >> including ANZ Bank New Zealand Limited (together "ANZ"). ANZ does not >> accept liability in connection with the integrity of or errors in the >> Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." > > > > -- > <https://implementingquantlib.blogspot.com> > <https://twitter.com/lballabio> > > "This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ Bank New Zealand Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." -- <https://implementingquantlib.blogspot.com> <https://twitter.com/lballabio> ------------------------------------------------------------------------------ Is your legacy SCM system holding you back? Join Perforce May 7 to find out: • 3 signs your SCM is hindering your productivity • Requirements for releasing software faster • Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Many thanks for your help!
-----Original Message----- From: Luigi Ballabio [mailto:[hidden email]] Sent: Thursday, 8 May 2014 11:49 PM To: Boafo, Theophilus Cc: quantlib-users; Ballabio Luigi Subject: Re: FW: FW: Re: boost::shared_ptr' Same problem as before. Add "boost::" to the ambiguous name (in this case, "bind"). Luigi On Thu, May 8, 2014 at 2:36 PM, Boafo, Theophilus <[hidden email]> wrote: > Hi Luigi, > > There are a lot of compilation errors, I don’t mind making the change. I have sent to mailing list, I may get error. > > Please how about the boost::bind error below ? > > ql\termstructures\credit\hazardratestructure.cpp(84): error C2668: > 'boost::bind' : ambiguous call to overloaded function > 1> C:\NotBackedUp\boost_1_47\boost/bind/bind_mf_cc.hpp(54): could be 'boost::_bi::bind_t<R,F,L> boost::bind<QuantLib::Real,QuantLib::HazardRateStructure,QuantLib::Time,const QuantLib::HazardRateStructure*,boost::arg<I>>(R (__thiscall QuantLib::HazardRateStructure::* )(B1) const,A1,A2)' > 1> with > 1> [ > 1> R=QuantLib::Real, > 1> F=boost::_mfi::cmf1<QuantLib::Real,QuantLib::HazardRateStructure,QuantLib::Time>, > 1> L=boost::_bi::list2<boost::_bi::value<const QuantLib::HazardRateStructure *>,boost::arg<1>>, > 1> I=1, > 1> B1=QuantLib::Time, > 1> A1=const QuantLib::HazardRateStructure *, > 1> A2=boost::arg<1> > 1> ] > 1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xxbind1(552): or 'std::tr1::_Bind<_Result_type,_Ret,_BindN> std::tr1::bind<QuantLib::Real,QuantLib::HazardRateStructure,QuantLib::Time,const QuantLib::HazardRateStructure*,boost::arg<I>>(_Rx (__thiscall QuantLib::HazardRateStructure::* const )(_Farg1) const,_Arg0,_Arg1)' > 1> with > 1> [ > 1> _Result_type=QuantLib::Real, > 1> _Ret=QuantLib::Real, > 1> _BindN=std::tr1::_Bind2<std::tr1::_Callable_pmf<QuantLib::Real (__thiscall QuantLib::HazardRateStructure::* const )(QuantLib::Time) const,QuantLib::HazardRateStructure,false>,const QuantLib::HazardRateStructure *,boost::arg<1>>, > 1> I=1, > 1> _Rx=QuantLib::Real, > 1> _Farg1=QuantLib::Time, > 1> _Arg0=const QuantLib::HazardRateStructure *, > 1> _Arg1=boost::arg<1> > 1> ] > 1> while trying to match the argument list '(QuantLib::Real (__thiscall QuantLib::HazardRateStructure::* )(QuantLib::Time) const, const QuantLib::HazardRateStructure *const , boost::arg<I>)' > 1> with > 1> [ > 1> I=1 > 1> ] > > Regards > > Theo > > -----Original Message----- > From: Luigi Ballabio [mailto:[hidden email]] > Sent: Thursday, 8 May 2014 8:26 PM > To: Boafo, Theophilus > Cc: Ballabio Luigi > Subject: Re: FW: Re: boost::shared_ptr' > > Replace the ambiguous 'shared_ptr' in fdmbatesop.cpp with 'boost::shared_ptr'. > > Luigi > > P.S. Please use the mailing list. Questions can benefit others, and I don't answer any faster to personal mail. > > > On Thu, May 8, 2014 at 2:01 PM, Boafo, Theophilus <[hidden email]> wrote: >> Hi Luigi, >> >> Please sorry about approaching you like this, am really desperate to >> fix this compile error. >> >> I have this error in an old library now opened in VS2010. Its >> Quantlib-1.2.1, how do I fix this, I have spent ours trying to >> resolve, no joy. >> >> 1>ql\methods\finitedifferences\operators\fdmbatesop.cpp(38): error C2872: >> 'shared_ptr' : ambiguous symbol >> >> 1> could be >> 'C:\NotBackedUp\boost_1_47\boost/smart_ptr/shared_ptr.hpp(165) : >> boost::shared_ptr' >> >> 1> or 'C:\Program Files (x86)\Microsoft Visual Studio >> 10.0\VC\include\memory(1418) : std::tr1::shared_ptr' >> >> Using boost_1_51. >> >> Regards >> >> Theo >> >> >> >> >> >> "This e-mail and any attachments to it (the "Communication") is, >> unless otherwise stated, confidential, may contain copyright >> material and is for the use only of the intended recipient. If you >> receive the Communication in error, please notify the sender >> immediately by return e-mail, delete the Communication and the return >> e-mail, and do not read, copy, retransmit or otherwise deal with it. >> Any views expressed in the Communication are those of the individual >> sender only, unless expressly stated to be those of Australia and New >> Zealand Banking Group Limited ABN 11 005 357 522, or any of its >> related entities including ANZ Bank New Zealand Limited (together >> "ANZ"). ANZ does not accept liability in connection with the >> integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." > > > > -- > <https://implementingquantlib.blogspot.com> > <https://twitter.com/lballabio> > > "This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ Bank New Zealand Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." -- <https://implementingquantlib.blogspot.com> <https://twitter.com/lballabio> "This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ Bank New Zealand Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." ------------------------------------------------------------------------------ Is your legacy SCM system holding you back? Join Perforce May 7 to find out: • 3 signs your SCM is hindering your productivity • Requirements for releasing software faster • Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |