std::function in Qt 5.4.1
General and Desktop
6
Posts
5
Posters
5.5k
Views
4
Watching
-
Hello! I can't use std::function in Qt. CONFIG += c++14 in pro, I write #include <functional>
Qt Creator3.3.2. Qt 5.4.1. Mac OS X. clang-602.0.49.
When I write std::function - no member named in namespace std.
How can I fix this?
Thank You!!! -
This post is deleted!
-
@t3685 This question is not stupid, because #include <functional> already exists.
-
@t3685 This question is not stupid, because #include <functional> already exists.
@Sanchir-Kartiev said:
@t3685 This question is not stupid, because #include <functional> already exists.
In Qt Creator, hover your mouse over
#include <functional>and press F2. Inspect the header -- does it look correct?Also, what happens if you use
CONFIG += c++11instead?