Posted by
Kim Kuen Tang on
URL: http://quantlib.414.s1.nabble.com/Building-with-Microsoft-Visual-C-2010-tp8402p8414.html
Luigi Ballabio schrieb:
> On Mon, 2010-06-21 at 08:15 +0200, Kim Kuen Tang wrote:
>
>>> Has anyone patched that for VC 2010 ? Or got it to work some other way ?
>>>
>>>
>> Unfortunately msvc 2010 already supports c++ox, and it introuduces also
>> its own shared_ptr. This results in name clash with boost::shared_ptr.
>>
>
> No, it does not. That's what namespaces are for.
>
I recheck the error messages that i got when compiling ql1.0.1 with
msvc10. One error for example comes from the following piece of code
(ql\methods\montecarlo\lsmbasissystem.cpp(119)) :
std::vector<boost::function1<Real, Array> > ret;
ret.push_back(bind(constant<Real, Real>(1.0),
bind(f_workaround, _1, 0, dim)));
Here bind was found by adl in the namespace std, while it also exists in
namespace boost. This results in name clash. It is of course not
difficult to correct the problem. You just need to add the namespace
boost:: before bind.
Btw, the same problem exists also for boost::ref.
Kim
> Luigi
>
>
>
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users