[boost::signal][boost::bind] signal::disconnect problem with MSVC 2005

Hi,
See this code ...
#include<iostream>
#include

david callu wrote:
When i compile with GCC 4.1.1, this compile fine. But when i compile with MSVC 2005 it report an error:
[...] This looks like a bug in Boost.Signals. At signal_template.hpp:213, replace: #if BOOST_WORKAROUND(BOOST_MSVC, <= 0x1700) with #if BOOST_WORKAROUND(BOOST_MSVC, <= 1300) and see if it helps.

Thank you very much Peter.
This fix the problem.
Now, all compile fine with MSVC 2005
Cheer
David Callu
2006/9/21, Peter Dimov
david callu wrote:
When i compile with GCC 4.1.1, this compile fine. But when i compile with MSVC 2005 it report an error:
[...]
This looks like a bug in Boost.Signals. At signal_template.hpp:213, replace:
#if BOOST_WORKAROUND(BOOST_MSVC, <= 0x1700)
with
#if BOOST_WORKAROUND(BOOST_MSVC, <= 1300)
and see if it helps.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Thanks David and Peter. I've put this fix into Boost CVS for future releases. Doug On Sep 21, 2006, at 2:06 PM, david callu wrote:
Thank you very much Peter. This fix the problem. Now, all compile fine with MSVC 2005
Cheer
David Callu
2006/9/21, Peter Dimov
: david callu wrote: When i compile with GCC 4.1.1, this compile fine. But when i compile with MSVC 2005 it report an error:
[...]
This looks like a bug in Boost.Signals. At signal_template.hpp:213, replace:
#if BOOST_WORKAROUND(BOOST_MSVC, <= 0x1700)
with
#if BOOST_WORKAROUND(BOOST_MSVC, <= 1300)
and see if it helps.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Doug Gregor wrote:
Thanks David and Peter. I've put this fix into Boost CVS for future releases.
FWIW, it looks like the same erroneous version check is present in deletion_test.cpp; maybe that's why this bug has went unnoticed. I prefer to just let tests fail instead of #ifdef-ing them for this very reason. :-)
participants (3)
-
david callu
-
Doug Gregor
-
Peter Dimov