Boost logo

Boost Users :

From: Russell Hind (rhind_at_[hidden])
Date: 2004-06-07 05:12:17

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.



#include "stdafx.h"
#using <mscorlib.dll>

//#pragma unmanaged

#include <boost/bind.hpp>
#include <boost/function.hpp>

class Test_c
     void test(void)

int main()
Test_c Test;
boost::function<void (void)> f(boost::bind(&Test_c::test, &Test));
     return 0;

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at