|
Boost Users : |
From: Russell Hind (rhind_at_[hidden])
Date: 2004-06-08 02:51:54
I've had a response from the Microsoft groups. The problem is described
here
http://support.microsoft.com/default.aspx?kbid=823071
I'll post back if I get it working.
Thanks
Russell
Russell Hind wrote:
> Compiling the following code with /CLR on, results in an empty function
> exception at run-time. If you un-comment the #pragma unmanaged to get
> native compilation, it runs fine.
>
> Thanks
>
> Russell
>
> #include "stdafx.h"
> #using <mscorlib.dll>
>
> //#pragma unmanaged
>
> #include <boost/bind.hpp>
> #include <boost/function.hpp>
>
> class Test_c
> {
> public:
> void test(void)
> {
> }
> };
>
> int main()
> {
> Test_c Test;
> boost::function<void (void)> f(boost::bind(&Test_c::test, &Test));
> f();
> return 0;
> }
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net