Guest User

Untitled

a guest
Apr 12th, 2016
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. In file included from /usr/include/c++/5/memory:79:0,
  2. from /home/wolph/workspace/2ch/src/MainWindow.h:15,
  3. from /home/wolph/workspace/2ch/src/MainWindow.cpp:1:
  4. /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>]’:
  5. /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()>]’
  6. /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 = {}]’
  7. /home/wolph/workspace/2ch/src/MainWindow.h:53:9: required from here
  8. /usr/include/c++/5/functional:1710:34: error: use of deleted function ‘MainWindow::MainWindow(QWindow*)::<lambda()>::<lambda>(const MainWindow::MainWindow(QWindow*)::<lambda()>&)’
  9. __dest._M_access<_Functor*>() =
  10. ^
  11. In file included from /home/wolph/workspace/2ch/src/MainWindow.cpp:1:0:
  12. /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:
  13. std::function<void()> lambda = [value = std::move(ptr)] {
  14. ^
  15. /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>]’
  16. In file included from /usr/include/c++/5/memory:81:0,
  17. from /home/wolph/workspace/2ch/src/MainWindow.h:15,
  18. from /home/wolph/workspace/2ch/src/MainWindow.cpp:1:
  19. /usr/include/c++/5/bits/unique_ptr.h:356:7: note: declared here
  20. unique_ptr(const unique_ptr&) = delete;
  21. ^
  22. Process failed with exit code 1.
  23. The following products could not be built for configuration qtc_Desktop__4164e6e4-debug:
Advertisement
Add Comment
Please, Sign In to add comment