|
From: Peter C. <pca...@gm...> - 2015-04-02 15:11:46
|
ah, alright. thanks Peter On 2 April 2015 at 17:00, Luigi Ballabio <lui...@gm...> wrote: > It looks like a VC9 bug: > <http://stackoverflow.com/questions/16709854/template-a-shared-ptr-argument>. > > On Thu, Apr 2, 2015 at 4:54 PM, Peter Caspers <pca...@gm...> > wrote: >> >> but why doesn't it work with boost::make_shared in msvc, did you >> understand this ? >> >> >> On 2 April 2015 at 15:47, Ferdinando M. Ametrano >> <fer...@am...> wrote: >> > ok, thank you >> > >> > the file was digitalcmsspreadcoupon and I pulled it just before your >> > last >> > commit 4h ago >> > >> > >> > On Thu, Apr 2, 2015 at 2:03 PM, Luigi Ballabio >> > <lui...@gm...> >> > wrote: >> >> >> >> Is this the latest master? There's no longer a call to make_shared >> >> there. >> >> >> >> Luigi >> >> >> >> On Thu, Apr 2, 2015 at 1:45 PM, Ferdinando M. Ametrano >> >> <fer...@am...> wrote: >> >>> >> >>> Hi all >> >>> >> >>> pulling from Luigi's master: cmsspreadcoupon does not compile with VC9 >> >>> boost 1.56 (error below) >> >>> >> >>> anyone able to fix it? >> >>> >> >>> thank you >> >>> F >> >>> 1>------ Build started: Project: QuantLib, Configuration: Release >> >>> Win32 >> >>> ------ >> >>> 1>Compiling... >> >>> 1>digitalcmsspreadcoupon.cpp >> >>> >> >>> >> >>> 1>c:\Projects\quantlib\QuantLib\ql/experimental/coupons/digitalcmsspreadcoupon.hpp(38) >> >>> : error C2780: 'boost::detail::sp_if_size_array<T>::type >> >>> boost::make_shared(const boost::detail::array_inner<T>::type &)' : >> >>> expects 1 >> >>> arguments - 0 provided >> >>> 1> >> >>> C:\Projects\boost_1_56_0\boost/smart_ptr/make_shared_array.hpp(89) : >> >>> see >> >>> declaration of 'boost::make_shared' >> >>> >> >>> >> >>> 1>c:\Projects\quantlib\QuantLib\ql/experimental/coupons/digitalcmsspreadcoupon.hpp(38) >> >>> : error C2780: 'boost::detail::sp_if_array<T>::type >> >>> boost::make_shared(size_t,const boost::detail::array_inner<T>::type >> >>> &)' : >> >>> expects 2 arguments - 0 provided >> >>> 1> >> >>> C:\Projects\boost_1_56_0\boost/smart_ptr/make_shared_array.hpp(62) : >> >>> see >> >>> declaration of 'boost::make_shared' >> >>> >> >>> >> >>> 1>c:\Projects\quantlib\QuantLib\ql/experimental/coupons/digitalcmsspreadcoupon.hpp(38) >> >>> : error C2783: 'boost::detail::sp_if_size_array<T>::type >> >>> boost::make_shared(void)' : could not deduce template argument for 'T' >> >>> 1> >> >>> C:\Projects\boost_1_56_0\boost/smart_ptr/make_shared_array.hpp(39) : >> >>> see >> >>> declaration of 'boost::make_shared' >> >>> >> >>> >> >>> 1>c:\Projects\quantlib\QuantLib\ql/experimental/coupons/digitalcmsspreadcoupon.hpp(38) >> >>> : error C2780: 'boost::detail::sp_if_array<T>::type >> >>> boost::make_shared(size_t)' : expects 1 arguments - 0 provided >> >>> 1> >> >>> C:\Projects\boost_1_56_0\boost/smart_ptr/make_shared_array.hpp(18) : >> >>> see >> >>> declaration of 'boost::make_shared' >> >>> >> >>> >> >>> 1>c:\Projects\quantlib\QuantLib\ql/experimental/coupons/digitalcmsspreadcoupon.hpp(38) >> >>> : error C2780: 'boost::detail::sp_if_not_array<T>::type >> >>> boost::make_shared(const A1 &,const A2 &,const A3 &,const A4 &,const >> >>> A5 >> >>> &,const A6 &,const A7 &,const A8 &,const A9 &)' : expects 9 arguments >> >>> - 0 >> >>> provided >> >>> 1> >> >>> C:\Projects\boost_1_56_0\boost/smart_ptr/make_shared_object.hpp(1088) >> >>> : see >> >>> declaration of 'boost::make_shared' >> >>> >> >>> >> >>> 1>c:\Projects\quantlib\QuantLib\ql/experimental/coupons/digitalcmsspreadcoupon.hpp(38) >> >>> : error C2780: 'boost::detail::sp_if_not_array<T>::type >> >>> boost::make_shared(const A1 &,const A2 &,const A3 &,const A4 &,const >> >>> A5 >> >>> &,const A6 &,const A7 &,const A8 &)' : expects 8 arguments - 0 >> >>> provided >> >>> 1> >> >>> C:\Projects\boost_1_56_0\boost/smart_ptr/make_shared_object.hpp(1052) >> >>> : see >> >>> declaration of 'boost::make_shared' >> >>> >> >>> >> >>> 1>c:\Projects\quantlib\QuantLib\ql/experimental/coupons/digitalcmsspreadcoupon.hpp(38) >> >>> : error C2780: 'boost::detail::sp_if_not_array<T>::type >> >>> boost::make_shared(const A1 &,const A2 &,const A3 &,const A4 &,const >> >>> A5 >> >>> &,const A6 &,const A7 &)' : expects 7 arguments - 0 provided >> >>> 1> >> >>> C:\Projects\boost_1_56_0\boost/smart_ptr/make_shared_object.hpp(1016) >> >>> : see >> >>> declaration of 'boost::make_shared' >> >>> >> >>> >> >>> 1>c:\Projects\quantlib\QuantLib\ql/experimental/coupons/digitalcmsspreadcoupon.hpp(38) >> >>> : error C2780: 'boost::detail::sp_if_not_array<T>::type >> >>> boost::make_shared(const A1 &,const A2 &,const A3 &,const A4 &,const >> >>> A5 >> >>> &,const A6 &)' : expects 6 arguments - 0 provided >> >>> 1> >> >>> C:\Projects\boost_1_56_0\boost/smart_ptr/make_shared_object.hpp(980) : >> >>> see >> >>> declaration of 'boost::make_shared' >> >>> >> >>> >> >>> 1>c:\Projects\quantlib\QuantLib\ql/experimental/coupons/digitalcmsspreadcoupon.hpp(38) >> >>> : error C2780: 'boost::detail::sp_if_not_array<T>::type >> >>> boost::make_shared(const A1 &,const A2 &,const A3 &,const A4 &,const >> >>> A5 &)' >> >>> : expects 5 arguments - 0 provided >> >>> 1> >> >>> C:\Projects\boost_1_56_0\boost/smart_ptr/make_shared_object.hpp(944) : >> >>> see >> >>> declaration of 'boost::make_shared' >> >>> >> >>> >> >>> 1>c:\Projects\quantlib\QuantLib\ql/experimental/coupons/digitalcmsspreadcoupon.hpp(38) >> >>> : error C2780: 'boost::detail::sp_if_not_array<T>::type >> >>> boost::make_shared(const A1 &,const A2 &,const A3 &,const A4 &)' : >> >>> expects 4 >> >>> arguments - 0 provided >> >>> 1> >> >>> C:\Projects\boost_1_56_0\boost/smart_ptr/make_shared_object.hpp(908) : >> >>> see >> >>> declaration of 'boost::make_shared' >> >>> >> >>> >> >>> 1>c:\Projects\quantlib\QuantLib\ql/experimental/coupons/digitalcmsspreadcoupon.hpp(38) >> >>> : error C2780: 'boost::detail::sp_if_not_array<T>::type >> >>> boost::make_shared(const A1 &,const A2 &,const A3 &)' : expects 3 >> >>> arguments >> >>> - 0 provided >> >>> 1> >> >>> C:\Projects\boost_1_56_0\boost/smart_ptr/make_shared_object.hpp(872) : >> >>> see >> >>> declaration of 'boost::make_shared' >> >>> >> >>> >> >>> 1>c:\Projects\quantlib\QuantLib\ql/experimental/coupons/digitalcmsspreadcoupon.hpp(38) >> >>> : error C2780: 'boost::detail::sp_if_not_array<T>::type >> >>> boost::make_shared(const A1 &,const A2 &)' : expects 2 arguments - 0 >> >>> provided >> >>> 1> >> >>> C:\Projects\boost_1_56_0\boost/smart_ptr/make_shared_object.hpp(836) : >> >>> see >> >>> declaration of 'boost::make_shared' >> >>> >> >>> >> >>> 1>c:\Projects\quantlib\QuantLib\ql/experimental/coupons/digitalcmsspreadcoupon.hpp(38) >> >>> : error C2780: 'boost::detail::sp_if_not_array<T>::type >> >>> boost::make_shared(const A1 &)' : expects 1 arguments - 0 provided >> >>> 1> >> >>> C:\Projects\boost_1_56_0\boost/smart_ptr/make_shared_object.hpp(800) : >> >>> see >> >>> declaration of 'boost::make_shared' >> >>> >> >>> >> >>> 1>c:\Projects\quantlib\QuantLib\ql/experimental/coupons/digitalcmsspreadcoupon.hpp(38) >> >>> : error C2783: 'boost::detail::sp_if_not_array<T>::type >> >>> boost::make_shared(void)' : could not deduce template argument for 'T' >> >>> 1> >> >>> C:\Projects\boost_1_56_0\boost/smart_ptr/make_shared_object.hpp(307) : >> >>> see >> >>> declaration of 'boost::make_shared' >> >>> 1>Build log was saved at >> >>> >> >>> "file://c:\Projects\quantlib\QuantLib\build\vc90\Win32\Release\BuildLog.htm" >> >>> 1>QuantLib - 14 error(s), 0 warning(s) >> >>> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped >> >>> ========== >> >>> >> >>> >> >>> >> >>> >> >>> ------------------------------------------------------------------------------ >> >>> Dive into the World of Parallel Programming The Go Parallel Website, >> >>> sponsored >> >>> by Intel and developed in partnership with Slashdot Media, is your hub >> >>> for all >> >>> things parallel software development, from weekly thought leadership >> >>> blogs to >> >>> news, videos, case studies, tutorials and more. Take a look and join >> >>> the >> >>> conversation now. http://goparallel.sourceforge.net/ >> >>> _______________________________________________ >> >>> QuantLib-dev mailing list >> >>> Qua...@li... >> >>> https://lists.sourceforge.net/lists/listinfo/quantlib-dev >> >>> >> >> >> >> >> >> >> >> -- >> >> <https://leanpub.com/implementingquantlib/> >> >> <https://implementingquantlib.blogspot.com> >> >> <https://twitter.com/lballabio> >> > >> > > > > > > -- > <https://leanpub.com/implementingquantlib/> > <https://implementingquantlib.blogspot.com> > <https://twitter.com/lballabio> |