[Development] Platform / compiler support

Olivier Goffart olivier at woboq.com
Mon Nov 7 23:10:03 CET 2011


On Tuesday 08 November 2011 08:50:14 Craig.Scott at csiro.au wrote:
> On 08/11/2011, at 8:40 AM, Olivier Goffart wrote:

> > In that case, #ifdef are going to be added around that kind of API that
> > cannot be used with that compiler.
> > This is one reason rvct did not have QtConcurrent.
> 
> I think we should differentiate between API and implementation here. If you
> include things in the API that some compilers don't support, you are dead
> in the water since the API requires it to be supported for client code to
> work. If the required feature only appears in the implementation, then you
> have the option of providing some alternative way of fulfilling the API
> which client code doesn't need to care about.

I know the difference.
But still, that API can be disabled for compiler not supporting that feature 
(as this was the case wth QtConcurrent on symbian, or as this was the case 
with QObject::findChildren<> on VC6)




More information about the Development mailing list