Re: Window API
Posted by Luigi Ballabio-2 on
URL: http://quantlib.414.s1.nabble.com/Window-API-tp3125p3126.html
On 2004.07.31 19:13, Nguyen Xuan Son wrote:
> Hi all,
> As you know, from 0.3.7 QuantLib uses Boost. The library defines
>
> #define Handle boost::shared_ptr
>
> But because I intende to use WINAPI , this definition results in a
> conflict
Hi,
the #define is there only in order to keep the name "Handle"
around (for backward-compatibility reasons. People might have written
code based on it and it shouldn't cease to compile all of a sudden. It
will disappear in next version.)
If your code uses shared_ptr already, just remove the #define. If it
doesn't, replace "Handle" with "shared_ptr" in your code (which you
will have to do before next release anyway) and then remove the
#define.
Hope this helps,
Luigi