samedi 9 mai 2015

c++ Is there something like typeof(Foo)

I'm having a Class called User.

I would like to write a function which gets me all entries of the table User from db like this:

getObectList(type aType)
{
...
select * from aType.name
...
}

and call it like getObjectList(typeof(User))

Is something like this possible in c++?





Aucun commentaire:

Enregistrer un commentaire