[Interest] void pointers

paulf at free.fr paulf at free.fr
Tue Jul 16 18:08:29 CEST 2013


----- Original Message -----
> Hi,
> 
> I have a codebase that is using a C library and Qt. I have some
> legacy code where structs from the C library are stored in a Qt/C++
> class using:
> 
> void *userData;

Hi

Generally the C++ equivalent of the 'legacy' C typeless void pointer is the 'any' or 'variant' type, such as QVariant or Boost.Any.

A+
Paul



More information about the Interest mailing list