Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
4.7.3
-
None
Description
With the introduction of user-defined literals, C++11 now requires a space after some strings:
— /usr/include/qt4/QtCore/qobjectdefs.h 2011-03-30
07:19:08.000000000 +0200
+++ in/QtCore/qobjectdefs.h 2011-11-10 14:12:10.128922487 +0100
@@ -214,7 +214,7 @@
#define QTOSTRING_HELPER(s) #s
#define QTOSTRING(s) QTOSTRING_HELPER(s)
#ifndef QT_NO_DEBUG
-
- define QLOCATION "\0"_FILE":"QTOSTRING(LINE_)
+# define QLOCATION "\0" _FILE":" QTOSTRING(LINE_)
- define QLOCATION "\0"_FILE":"QTOSTRING(LINE_)
- define METHOD(a) qFlagLocation("0"#a QLOCATION)
- define SLOT(a) qFlagLocation("1"#a QLOCATION)
- define SIGNAL(a) qFlagLocation("2"#a QLOCATION)
See this thread for a discussion on the subject:
https://groups.google.com/forum/#!topic/comp.std.c++/9nD4Mb8pN1Q
You may want to add even more space, I just added the minimum so g+-4.7 -std=c+11 accepted it.
Attachments
Issue Links
- relates to
-
QTBUG-22847 Qt does not compile with gcc from svn.
-
- Closed
-