Hi,
I noticed that Qt-Creator is having issues(possibly bugs) with STL
style iterators and macro expansions.

I found that the issue regarding the STL style iterators are logged on
to the bug tracker with the IDs
1892 (http://bugreports.qt.nokia.com/browse/QTCREATORBUG-1892) and
4037 (http://bugreports.qt.nokia.com/browse/QTCREATORBUG-4037).

Is there any plan to support this in the up coming releases?


Regarding the macro expansion, Consider the following code snippet.

#include <cstdio>

#define I32             int32_t
#define UI32            uint32_t

#define FMT_I32(X)      "%" X "d"
#define FMT_UI32(X)     "%" X "u"

#define FMT(TYPE)       FMT_##TYPE("")

int main()
{
  printf(""FMT(I32)"\n", 10);
  return 0;

}

Although the above code snippet is a valid C++ code, Qt-Creator states
"printf" statement is having errors. It seems the macros are not
expanded correctly. Any ideas about this?

Thank you in advance.

--
Best Regards,
Kasun Hewage
කසුන් හේවගේ
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-creator

Reply via email to