Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 5th, 2012  |  syntax: C++  |  size: 3.15 KB  |  views: 57  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. from main.cpp:3:
  2. /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/include/g++-v4/functional: In instantiation of 'std::_Bind_result<void, Run()>':
  3. /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/include/g++-v4/thread:135:9:   instantiated from 'std::thread::thread(_Callable&&, _Args&& ...) [with _Callable = Run&, _Args = {}]'
  4. main.cpp:68:17:   instantiated from here
  5. /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/include/g++-v4/functional:1365:7: error: 'std::_Bind_result<_Result, _Functor(_Bound_args ...)>::_Bind_result(const std::_Bind_result<_Result, _Functor(_Bound_args ...)>&) [with _Result = void, _Functor = Run, _Bound_args = {}, std::_Bind_result<_Result, _Functor(_Bound_args ...)> = std::_Bind_result<void, Run()>]' declared to take const reference, but implicit declaration would take non-const
  6. /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/include/g++-v4/functional: In constructor 'std::_Bind_result<_Result, _Functor(_Bound_args ...)>::_Bind_result(const _Functor&, _Args&& ...) [with _Args = {}, _Result = void, _Functor = Run, _Bound_args = {}]':
  7. /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/include/g++-v4/functional:1477:41:   instantiated from 'typename std::_Bindres_helper<_Result, _Functor, _ArgTypes>::type std::bind(_Functor&&, _ArgTypes&& ...) [with _Result = void, _Functor = Run&, _ArgTypes = {}, typename std::_Bindres_helper<_Result, _Functor, _ArgTypes>::type = std::_Bind_result<void, Run()>]'
  8. /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/include/g++-v4/thread:135:9:   instantiated from 'std::thread::thread(_Callable&&, _Args&& ...) [with _Callable = Run&, _Args = {}]'
  9. main.cpp:68:17:   instantiated from here
  10. /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/include/g++-v4/functional:1357:59: error: no matching function for call to 'Run::Run(const Run&)'
  11. /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/include/g++-v4/functional:1357:59: note: candidate is:
  12. main.cpp:38:5: note: Run::Run()
  13. main.cpp:38:5: note:   candidate expects 0 arguments, 1 provided
  14. /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/include/g++-v4/functional: In constructor 'std::_Bind_result<_Result, _Functor(_Bound_args ...)>::_Bind_result(std::_Bind_result<_Result, _Functor(_Bound_args ...)>&&) [with _Result = void, _Functor = Run, _Bound_args = {}, std::_Bind_result<_Result, _Functor(_Bound_args ...)> = std::_Bind_result<void, Run()>]':
  15. /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/include/g++-v4/functional:1477:41:   instantiated from 'typename std::_Bindres_helper<_Result, _Functor, _ArgTypes>::type std::bind(_Functor&&, _ArgTypes&& ...) [with _Result = void, _Functor = Run&, _ArgTypes = {}, typename std::_Bindres_helper<_Result, _Functor, _ArgTypes>::type = std::_Bind_result<void, Run()>]'
  16. /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/include/g++-v4/thread:135:9:   instantiated from 'std::thread::thread(_Callable&&, _Args&& ...) [with _Callable = Run&, _Args = {}]'
  17. main.cpp:68:17:   instantiated from here
  18. /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/include/g++-v4/functional:1368:78: error: no matching function for call to 'Run::Run(std::remove_reference<Run&>::type)'
  19. /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/include/g++-v4/functional:1368:78: note: candidate is:
  20. main.cpp:38:5: note: Run::Run()
  21. main.cpp:38:5: note:   candidate expects 0 arguments, 1 provided
clone this paste RAW Paste Data