Can you use a C++ macro instead, which has different definitions based on the preprocessor switches? Alternatively, can you define an adapter class or class template that takes a QVariant reference as argument and returns the needed type?That forces me to litter my code with preprocessor defines
In either case, the preprocessor switching is hidden away inside the implementation, but it will still require editing all the code that uses it.




Reply With Quote

Bookmarks