C++ Programming
04-30-2009, 08:20 PM
I found this code a little confusing. Due to proprietary nature of the original source, I have to abstract this out.
What does const void return value mean? I can understand the intent of "const void*" return value, but "const void" seems to be just a typo?
Am I missing anything fancy with the construct here?
#include
typedef const void (*hello)();
const void x()
{
printf("x() is called\n");
}
int main()
{
hello test=x;
test();
}
What does const void return value mean? I can understand the intent of "const void*" return value, but "const void" seems to be just a typo?
Am I missing anything fancy with the construct here?
#include
typedef const void (*hello)();
const void x()
{
printf("x() is called\n");
}
int main()
{
hello test=x;
test();
}