Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In file included from /usr/include/c++/5/memory:79:0,
- from /home/wolph/workspace/2ch/src/MainWindow.h:15,
- from /home/wolph/workspace/2ch/src/MainWindow.cpp:1:
- /usr/include/c++/5/functional: In instantiation of ‘static void std::_Function_base::_Base_manager<_Functor>::_M_clone(std::_Any_data&, const std::_Any_data&, std::false_type) [with _Functor = MainWindow::MainWindow(QWindow*)::<lambda()>; std::false_type = std::integral_constant<bool, false>]’:
- /usr/include/c++/5/functional:1746:16: required from ‘static bool std::_Function_base::_Base_manager<_Functor>::_M_manager(std::_Any_data&, const std::_Any_data&, std::_Manager_operation) [with _Functor = MainWindow::MainWindow(QWindow*)::<lambda()>]’
- /usr/include/c++/5/functional:2260:19: required from ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = MainWindow::MainWindow(QWindow*)::<lambda()>; <template-parameter-2-2> = void; _Res = void; _ArgTypes = {}]’
- /home/wolph/workspace/2ch/src/MainWindow.h:53:9: required from here
- /usr/include/c++/5/functional:1710:34: error: use of deleted function ‘MainWindow::MainWindow(QWindow*)::<lambda()>::<lambda>(const MainWindow::MainWindow(QWindow*)::<lambda()>&)’
- __dest._M_access<_Functor*>() =
- ^
- In file included from /home/wolph/workspace/2ch/src/MainWindow.cpp:1:0:
- /home/wolph/workspace/2ch/src/MainWindow.h:51:63: note: ‘MainWindow::MainWindow(QWindow*)::<lambda()>::<lambda>(const MainWindow::MainWindow(QWindow*)::<lambda()>&)’ is implicitly deleted because the default definition would be ill-formed:
- std::function<void()> lambda = [value = std::move(ptr)] {
- ^
- /home/wolph/workspace/2ch/src/MainWindow.h:51:63: error: use of deleted function ‘std::unique_ptr<_Tp, _Dp>::unique_ptr(const std::unique_ptr<_Tp, _Dp>&) [with _Tp = int; _Dp = std::default_delete<int>]’
- In file included from /usr/include/c++/5/memory:81:0,
- from /home/wolph/workspace/2ch/src/MainWindow.h:15,
- from /home/wolph/workspace/2ch/src/MainWindow.cpp:1:
- /usr/include/c++/5/bits/unique_ptr.h:356:7: note: declared here
- unique_ptr(const unique_ptr&) = delete;
- ^
- Process failed with exit code 1.
- The following products could not be built for configuration qtc_Desktop__4164e6e4-debug:
Advertisement
Add Comment
Please, Sign In to add comment