OK, let me explain.
I am porting Windows code that calls RegQueryValueEx (for example, there are other API's).
RegQueryValueEx returns the correct type to the user, since that type is written correctly in Windows Registry (also in QSettings as long as you run it without stopping the process).
I have written a Linux implementation of RegQueryValueEx.
I can modify all the calls to RegQueryValueEx (which is a hassle).
Because this is a multiplatform project, I can't guarantee that another developer won't call RegQueryValueEx and rely on it to return the correct type.
Bookmarks