24 Sep
2008
24 Sep
'08
10:49 a.m.
Bob Lim:
Hi guys,
I cannot compile without error for function10.hpp in Visual Studio 2005 Pro. A simple source file to reproduce the problem is attached(Test.cpp). There is no such problem with other function0-9.hpp, except for function10.hpp.
This is not really a problem with function10.hpp, but with mem_fn, which is used when you assign a member pointer to a function<>. mem_fn doesn't support that many parameters. It's limited to 8 (9 if you count the implicit 'this'.)