Re: Building with Microsoft Visual C++ 2010

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Building-with-Microsoft-Visual-C-2010-tp8402p8415.html

On Tue, 2010-06-22 at 15:27 +0200, Kim Kuen Tang wrote:

> 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.

Ok, I see.  Did you manage to compile under VC2010? Do you have a set of
patches I can apply?

Luigi


--

Prediction is very difficult, especially if it's about the future.
-- Niels Bohr



------------------------------------------------------------------------------
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