Primitive wrapper
-
I have a class 'User' and it has an attribute 'int id'.
I would like to use a wrapper to allow it to be null.I tried to search about primitive data wrappers but I didn't succeed.
I tried to use a QSharedPointer but I don't think it is the best option.
I don't think QVariant for every primitive attribute in 'User' class looks nice neither.I would appreciate some help, thanks!
Brian