Hello Jerry!
Monday June 23 1997 06:58, Jerry Coffin wrote to Cameron Clark:
JC> On (21 Jun 97) Cameron Clark wrote to Paul Elliott...
PE>> Error _lc.c 57: Cannot convert 'void *' to 'BINLOG *' in function
PE>> main(int,char * *) *** 1 errors in Compile ***
CC>> If I recall correctly ANSI c++ forbids void pointers.
JC> Nope - C++ allows pointers to void, but unlike C doesn't allow
JC> implicit casts to pointers to other types. I.e. in C if you have a
JC> pointer to void, you can assign that to a pointer to ANY other type
JC> without a cast. In C++, you can only assign it to another pointer to
JC> void without a cast.
You are correct sir. C++ has inforced a little bit more strong-typing than C
did, because of its object-oriented nature. In C++, if you are using it
properly, you should be creating an operator within your classes that
converts to the types that you expect to cast to.
Brad
... Linux, the choice of the GNU generation.
---
---------------
* Origin: MegaCity-One (1:105/40.22)
|