Passing functions by value in a class...
Code:
c:\I.cpp: In method `bool InputBuffer::Create(long unsigned int = 10000)':
c:\I.cpp: 73: no matches converting function `Thread' to type `DWORD (*)(void *)'
c:\I.cpp: 31: candidates are: DWORD InputBuffer::Thread(void *)
The problem is when I pass a certain function by address into another function in a class, the compiler won't allow it.
Yet when I call the same function in a straight C program, it allows it to compile and the function runs smoothly.
...any ideas?
I know that the type-checking is tighter with C++, but this is ridiculous.