Created
August 9, 2017 22:07
-
-
Save anonymous/2d5ccfa9ab04320902f51d005a96d2ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vagrant@localhost projects]$ g++ -o test test.cpp -lpthread | |
In file included from /usr/local/include/c++/6.3.0/memory:79:0, | |
from test.cpp:4: | |
/usr/local/include/c++/6.3.0/functional: In instantiation of ‘struct std::_Bind_simple<InterruptibleThread::InterruptibleThread(Function&&, Args&& ...) [with Function = void (&)(); Args = {}]::<lambda(std::atomic_bool&, void (&)())>(std::reference_wrapper<std::atomic<bool> >, void (*)())>’: | |
/usr/local/include/c++/6.3.0/thread:137:26: required from ‘std::thread::thread(_Callable&&, _Args&& ...) [with _Callable = InterruptibleThread::InterruptibleThread(Function&&, Args&& ...) [with Function = void (&)(); Args = {}]::<lambda(std::atomic_bool&, void (&)())>; _Args = {std::reference_wrapper<std::atomic<bool> >, void (&)()}]’ | |
test.cpp:37:33: required from ‘InterruptibleThread::InterruptibleThread(Function&&, Args&& ...) [with Function = void (&)(); Args = {}]’ | |
test.cpp:69:32: required from here | |
/usr/local/include/c++/6.3.0/functional:1365:61: error: no type named ‘type’ in ‘class std::result_of<InterruptibleThread::InterruptibleThread(Function&&, Args&& ...) [with Function = void (&)(); Args = {}]::<lambda(std::atomic_bool&, void (&)())>(std::reference_wrapper<std::atomic<bool> >, void (*)())>’ | |
typedef typename result_of<_Callable(_Args...)>::type result_type; | |
^~~~~~~~~~~ | |
/usr/local/include/c++/6.3.0/functional:1386:9: error: no type named ‘type’ in ‘class std::result_of<InterruptibleThread::InterruptibleThread(Function&&, Args&& ...) [with Function = void (&)(); Args = {}]::<lambda(std::atomic_bool&, void (&)())>(std::reference_wrapper<std::atomic<bool> >, void (*)())>’ | |
_M_invoke(_Index_tuple<_Indices...>) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment