I noticed similar problems when using the boost::bind functions in my application with Visual Studio 7.1. If I turn off all optimizations it works fine. Whole program optimization seems to be the biggest culprit. Due to my projects time constraints I didn't real track it down any farther. Mark Loew, MCSD, MCSE Application Development Consultant Sagestone Consulting www.sagestone.com Grand Rapids, MI 616-954-9556 x149 Microsoft Gold Certified Partner mloew@sagestone.com -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Peter Klotz Sent: Tuesday, February 03, 2004 2:04 PM To: Boost Users mailing list Subject: Re: [Boost-users] boost::bind throws exception with VisualStudio 7.1
The following program throws a bad_function_call exception when compiled with VisualStudio 7.1. It happens with both boost-1.30.2 and
boost_1_31_0_rc2. No problems when compiled with g++ 2.95.1 on solaris.
Tried it with VC++7.1 and Boost 1.30.2. Compiles and runs without problems. Best regards, Peter. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users