S
Skybuck Flying
Hello,
I just came across something strange.
Prototypes for routines:
1: void test(void *data)
2: void test(void &data)
The first one does compile in visual studio 2010 and the second does not.
They both seem conceptually the same, like untyped variable data in Delphi,
yet the first one is allowed and the second is not allowed.
Isn't that strange ?!
Seems like case 2 is not yet implemented, either in the c/c++ language rules
or in the compiler ?!
Bye,
Skybuck.
I just came across something strange.
Prototypes for routines:
1: void test(void *data)
2: void test(void &data)
The first one does compile in visual studio 2010 and the second does not.
They both seem conceptually the same, like untyped variable data in Delphi,
yet the first one is allowed and the second is not allowed.
Isn't that strange ?!
Seems like case 2 is not yet implemented, either in the c/c++ language rules
or in the compiler ?!
Bye,
Skybuck.