Aleksey Gurtovoy wrote:
Vincent Finn wrote:
I am using the function classes in VC6 and have hit a problem
The problem is that the compiler can't allocate enough space to build (The error mesages are at the bottom) Nomally you use the /ZmXXX compiler flag to make this bigger but that doesn't work in this case
Is there a simple workaround?
The simplest one is to split a single translation unit into several ones, if it's possible.
Unfortunately I can't do that
If it's not, or of this still doesn't help, and you are sure that you are _not_ using the type_traits type transformation templates (http://www.boost.org/libs/type_traits/index.htm#transformations), then you can define (a project wise) BOOST_TT_NO_BROKEN_COMPILER_SPEC macro and see how this one works out.
Note that for the latter you'll need the latest CVS version of type_traits library, and that some of the other boost libraries might rely on things like 'remove_pointer' working properly, so depending on that this might or might not be a viable option.
I tried to use CVS and couldn't get it to connect (never used it before) Since there is no gaurantee that the problem will be fixed I can't be bothered spending anymore time playing with TortoiseCVS to get it working so I have abandoned boost::function and gone back to function pointers Oh well :-( Thanks anyway, Vin