Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.11.1
-
Windows 10 x64 MSVC2017x64, GCC 7.3
-
-
12b8283f899ebcf401d974927314b9531334a56e (qt/qtbase/dev) 4fd10b68d4ec813b031415872e2ab296a062fb6f (qt/qtbase/6.1) a85766e97967fa249bc66e36504780ba72bea2a4 (qt/tqtc-qtbase/5.15)
Description
If I try to write signals/slots with trailing-return-type as described here(https://en.cppreference.com/w/cpp/language/function), that feature become available with C++11 standard decltype.
signals:
auto testSignal() -> void;
public slots:
auto testSlot() -> void;
But my compilation faild, as I understand moc cannot parse this signature, and gives error like that:
\AutoReturn\TestClass.hpp -o debug\moc_TestClass.cpp
..\AutoReturn\TestClass.hpp(12): Parse error at ":"
You could reproduce this issue on my small example AutoReturn.zip
Attachments
Issue Links
- is duplicated by
-
QTBUG-93952 Q_INVOKABLE not working with placeholder type specifier (auto)
- Closed