11-01-2013 02:12 PM
I've just bought a Z10 and, having some passion for C++, Qt and programming in general, I decided to join the dev community and setup IDEs, SDKs and so on.
I've been reading stuff all day long, and I have some confusion in my head. So, what I would like to receive issome clarifications regarding BB10 SDK and C++11: is it correct that qcc (it's the name of the customized C++ compiler for BB, right?) is based on gcc 4.6.3? If so, C++11 support isn't very extended...and since I have most of my code written in C++11, I wonder: are there any plans to update qcc to be based on GCC 4.8 or so?
Another thing: does the compiler support the Standard Library and STL in their entireness?
Thanks in advance,
11-02-2013 11:43 AM
Welcome to the forums
Actually qcc is a wrapper around gcc. So is is a gcc somewhat of 4.6.
11-02-2013 12:13 PM
11-03-2013 09:05 PM - edited 11-03-2013 09:22 PM
Yes, it would be nice if qcc used a more recent version of gcc, but why not just duplicate unique_ptr yourself? It is just a class, a template, and some helper functions. The details are here.
Alternately, depending on exactly how you use unique_ptr, you could use auto_ptr instead.
Finally, although it provides different functionality, with the way objects are used with Qt, QPointer is likely to be more useful than unique_ptr.
Anyway, my question still stands, since I can't certainly wrap gcc 4.8 on my own and inject it into the sdk...
I'd really rather avoid reverting many lines of code to C++03, I mean, how can you code without unique_ptr and r value references once you got used to it?
Has any rim employee any insight on this matter? I tried using qt creator instead of momentics but the problem remains as qt creator uses qcc...
11-04-2013 02:53 AM