Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.63 KB | None | 0 0
  1. /Applications/CLion.app/Contents/bin/cmake/bin/cmake --build /Users/ahcox/Library/Caches/CLion2016.2/cmake/generated/stlab_experiments-e68879c1/e68879c1/Debug --target async_error_repro2 -- -j 8
  2. -- Configuring done
  3. -- Generating done
  4. -- Build files have been written to: /Users/ahcox/Library/Caches/CLion2016.2/cmake/generated/stlab_experiments-e68879c1/e68879c1/Debug
  5. [ 50%] Building CXX object CMakeFiles/async_error_repro2.dir/async_error_repro2.cpp.o
  6. In file included from /Users/ahcox/checkouts/stlab_experiments/async_error_repro2.cpp:9:
  7. In file included from /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:22:
  8. In file included from /Users/ahcox/checkouts/stlab/stlab/concurrency/executor_base.hpp:16:
  9. /Users/ahcox/checkouts/stlab/stlab/concurrency/task.hpp:78:52: error: no matching function for call to object of type 'std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> >'
  10. R invoke(Args&&... args) override { return _f(std::forward<Args>(args)...); }
  11. ^~
  12. /Users/ahcox/checkouts/stlab/stlab/concurrency/task.hpp:75:9: note: in instantiation of member function 'stlab::v1::task<SharedState &()>::model<std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> >, true>::invoke' requested here
  13. model(F0&& f) : _f(std::forward<F0>(f)) {}
  14. ^
  15. /Users/ahcox/checkouts/stlab/stlab/concurrency/task.hpp:118:17: note: in instantiation of function template specialization 'stlab::v1::task<SharedState &()>::model<std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> >, true>::model<std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
  16. model<f_t, sizeof(model<f_t, true>) <= small_object_size>(std::forward<F>(f));
  17. ^
  18. /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:493:63: note: in instantiation of function template specialization 'stlab::v1::task<SharedState &()>::task<std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
  19. shared(executor_t s, F f) : shared_base<R>(std::move(s)), _f(std::move(f)) {
  20. ^
  21. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2206:15: note: in instantiation of function template specialization 'stlab::v1::detail::shared<SharedState &()>::shared<std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
  22. __second_(_VSTD::forward<_Args2>(_VSTD::get<_I2>(__second_args))...)
  23. ^
  24. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2469:15: note: in instantiation of function template specialization 'std::__1::__libcpp_compressed_pair_imp<std::__1::allocator<stlab::v1::detail::shared<SharedState &()> >, stlab::v1::detail::shared<SharedState &()>, 1>::__libcpp_compressed_pair_imp<std::__1::allocator<stlab::v1::detail::shared<SharedState &()> > &, stlab::v1::detail::default_executor_type &&, std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > &&, 0, 0, 1>' requested here
  25. : base(__pc, _VSTD::move(__first_args), _VSTD::move(__second_args),
  26. ^
  27. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3812:16: note: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all)
  28. : __data_(piecewise_construct, _VSTD::forward_as_tuple(__a),
  29. ^
  30. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4423:26: note: in instantiation of function template specialization 'std::__1::__shared_ptr_emplace<stlab::v1::detail::shared<SharedState &()>, std::__1::allocator<stlab::v1::detail::shared<SharedState &()> > >::__shared_ptr_emplace<stlab::v1::detail::default_executor_type, std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
  31. ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
  32. ^
  33. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4787:29: note: in instantiation of function template specialization 'std::__1::shared_ptr<stlab::v1::detail::shared<SharedState &()> >::make_shared<stlab::v1::detail::default_executor_type, std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
  34. return shared_ptr<_Tp>::make_shared(_VSTD::forward<_Args>(__args)...);
  35. ^
  36. /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:824:19: note: in instantiation of function template specialization 'std::__1::make_shared<stlab::v1::detail::shared<SharedState &()>, stlab::v1::detail::default_executor_type, std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
  37. auto p = std::make_shared<detail::shared<Sig>>(std::move(s), std::move(f));
  38. ^
  39. /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1277:14: note: in instantiation of function template specialization 'stlab::v1::package<SharedState &(), stlab::v1::detail::default_executor_type, std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
  40. auto p = package<std::result_of_t<F(Args...)>()>(executor,
  41. ^
  42. /Users/ahcox/checkouts/stlab_experiments/async_error_repro2.cpp:42:32: note: in instantiation of function template specialization 'stlab::v1::async<stlab::v1::detail::default_executor_type, (lambda at /Users/ahcox/checkouts/stlab_experiments/async_error_repro2.cpp:19:25) &, const int &, const long double &, std::__1::reference_wrapper<SharedState> >' requested here
  43. auto stlabFuture1 = stlab::async(stlab::default_executor, taskNonConst, i, f, std::ref(inOut)); // Fail [expect: compile as std::ref used]
  44. ^
  45. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:2158:9: note: candidate template ignored: substitution failure [with _Args = <>]: implicit instantiation of undefined template 'std::__1::__bind_return<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), std::__1::tuple<int, long double, std::__1::reference_wrapper<SharedState> >, std::__1::tuple<>, false>'
  46. operator()(_Args&& ...__args)
  47. ^
  48. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:2167:9: note: candidate template ignored: substitution failure [with _Args = <>]: implicit instantiation of undefined template 'std::__1::__bind_return<const (lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const std::__1::tuple<int, long double, std::__1::reference_wrapper<SharedState> >, std::__1::tuple<>, false>'
  49. operator()(_Args&& ...__args) const
  50. ^
  51. In file included from /Users/ahcox/checkouts/stlab_experiments/async_error_repro2.cpp:9:
  52. In file included from /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:22:
  53. In file included from /Users/ahcox/checkouts/stlab/stlab/concurrency/executor_base.hpp:16:
  54. /Users/ahcox/checkouts/stlab/stlab/concurrency/task.hpp:78:52: error: no matching function for call to object of type 'std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> >'
  55. R invoke(Args&&... args) override { return _f(std::forward<Args>(args)...); }
  56. ^~
  57. /Users/ahcox/checkouts/stlab/stlab/concurrency/task.hpp:75:9: note: in instantiation of member function 'stlab::v1::task<void ()>::model<std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> >, true>::invoke' requested here
  58. model(F0&& f) : _f(std::forward<F0>(f)) {}
  59. ^
  60. /Users/ahcox/checkouts/stlab/stlab/concurrency/task.hpp:118:17: note: in instantiation of function template specialization 'stlab::v1::task<void ()>::model<std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> >, true>::model<std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
  61. model<f_t, sizeof(model<f_t, true>) <= small_object_size>(std::forward<F>(f));
  62. ^
  63. /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:493:63: note: in instantiation of function template specialization 'stlab::v1::task<void ()>::task<std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
  64. shared(executor_t s, F f) : shared_base<R>(std::move(s)), _f(std::move(f)) {
  65. ^
  66. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2206:15: note: in instantiation of function template specialization 'stlab::v1::detail::shared<void ()>::shared<std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
  67. __second_(_VSTD::forward<_Args2>(_VSTD::get<_I2>(__second_args))...)
  68. ^
  69. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2469:15: note: in instantiation of function template specialization 'std::__1::__libcpp_compressed_pair_imp<std::__1::allocator<stlab::v1::detail::shared<void ()> >, stlab::v1::detail::shared<void ()>, 1>::__libcpp_compressed_pair_imp<std::__1::allocator<stlab::v1::detail::shared<void ()> > &, stlab::v1::detail::default_executor_type &&, std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > &&, 0, 0, 1>' requested here
  70. : base(__pc, _VSTD::move(__first_args), _VSTD::move(__second_args),
  71. ^
  72. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3812:16: note: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all)
  73. : __data_(piecewise_construct, _VSTD::forward_as_tuple(__a),
  74. ^
  75. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4423:26: note: in instantiation of function template specialization 'std::__1::__shared_ptr_emplace<stlab::v1::detail::shared<void ()>, std::__1::allocator<stlab::v1::detail::shared<void ()> > >::__shared_ptr_emplace<stlab::v1::detail::default_executor_type, std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
  76. ::new(__hold2.get()) _CntrlBlk(__a2, _VSTD::forward<_Args>(__args)...);
  77. ^
  78. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4787:29: note: in instantiation of function template specialization 'std::__1::shared_ptr<stlab::v1::detail::shared<void ()> >::make_shared<stlab::v1::detail::default_executor_type, std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
  79. return shared_ptr<_Tp>::make_shared(_VSTD::forward<_Args>(__args)...);
  80. ^
  81. /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:824:19: note: in instantiation of function template specialization 'std::__1::make_shared<stlab::v1::detail::shared<void ()>, stlab::v1::detail::default_executor_type, std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
  82. auto p = std::make_shared<detail::shared<Sig>>(std::move(s), std::move(f));
  83. ^
  84. /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1277:14: note: in instantiation of function template specialization 'stlab::v1::package<void (), stlab::v1::detail::default_executor_type, std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> > >' requested here
  85. auto p = package<std::result_of_t<F(Args...)>()>(executor,
  86. ^
  87. /Users/ahcox/checkouts/stlab_experiments/async_error_repro2.cpp:46:37: note: in instantiation of function template specialization 'stlab::v1::async<stlab::v1::detail::default_executor_type, (lambda at /Users/ahcox/checkouts/stlab_experiments/async_error_repro2.cpp:26:38) &, const int &, const long double &, std::__1::reference_wrapper<SharedState> >' requested here
  88. auto stlabFutureNoRet1 = stlab::async(stlab::default_executor, taskNonConst_02_no_return, i, f, std::ref(inOut)); // Fails
  89. ^
  90. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:2158:9: note: candidate template ignored: substitution failure [with _Args = <>]: implicit instantiation of undefined template 'std::__1::__bind_return<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), std::__1::tuple<int, long double, std::__1::reference_wrapper<SharedState> >, std::__1::tuple<>, false>'
  91. operator()(_Args&& ...__args)
  92. ^
  93. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:2167:9: note: candidate template ignored: substitution failure [with _Args = <>]: implicit instantiation of undefined template 'std::__1::__bind_return<const (lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const std::__1::tuple<int, long double, std::__1::reference_wrapper<SharedState> >, std::__1::tuple<>, false>'
  94. operator()(_Args&& ...__args) const
  95. ^
  96. 2 errors generated.
  97. make[3]: *** [CMakeFiles/async_error_repro2.dir/async_error_repro2.cpp.o] Error 1
  98. make[2]: *** [CMakeFiles/async_error_repro2.dir/all] Error 2
  99. make[1]: *** [CMakeFiles/async_error_repro2.dir/rule] Error 2
  100. make: *** [async_error_repro2] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement