Skip to content

Instantly share code, notes, and snippets.

@oberstet
Created March 26, 2014 13:40
Show Gist options
  • Save oberstet/9783364 to your computer and use it in GitHub Desktop.
Save oberstet/9783364 to your computer and use it in GitHub Desktop.
oberstet@corei7ub1310:~/scm/tavendo/autobahn/AutobahnCpp$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
clang++ -o build/test/test10.o -c -std=c++11 -stdlib=libc++ -Wall -Wno-deprecated-declarations -pthread -I/home/oberstet/boost -Iinclude -I/home/oberstet/msgpack_clang/include test/test10.cpp
In file included from test/test10.cpp:6:
/home/oberstet/boost/boost/thread/future.hpp:4608:7: warning: expression result unused [-Wunused-value]
typename alias_t<char[]>::type{
^ ~
/home/oberstet/boost/boost/thread/future.hpp:4768:15: note: in instantiation of function template specialization
'boost::detail::future_when_all_vector_shared_state<boost::future<int> >::future_when_all_vector_shared_state<boost::future<int> &, boost::future<int> &>' requested here
h(new factory_type(detail::values_tag_value, boost::forward<T0>(f), boost::forward<T>(futures)...));
^
test/test10.cpp:14:14: note: in instantiation of function template specialization 'boost::when_all<boost::future<int> &, boost::future<int> &>' requested here
auto f3 = when_all(f1, f2);
^
In file included from test/test10.cpp:1:
In file included from /usr/include/c++/v1/iostream:38:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:15:
In file included from /usr/include/c++/v1/string:434:
In file included from /usr/include/c++/v1/algorithm:627:
/usr/include/c++/v1/memory:1685:31: error: call to deleted constructor of 'boost::future<int>'
::new((void*)__p) _Up(_VSTD::forward<_Args>(__args)...);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/v1/memory:1612:18: note: in instantiation of function template specialization 'std::__1::allocator<boost::future<int> >::construct<boost::future<int>, const
boost::future<int> &>' requested here
{__a.construct(__p, _VSTD::forward<_Args>(__args)...);}
^
/usr/include/c++/v1/memory:1493:14: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::__1::allocator<boost::future<int> >
>::__construct<boost::future<int>, const boost::future<int> &>' requested here
{__construct(__has_construct<allocator_type, pointer, _Args...>(),
^
/usr/include/c++/v1/vector:1518:25: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::__1::allocator<boost::future<int> >
>::construct<boost::future<int>, const boost::future<int> &>' requested here
__alloc_traits::construct(this->__alloc(),
^
/home/oberstet/boost/boost/thread/future.hpp:4607:12: note: in instantiation of member function 'std::__1::vector<boost::future<int>, std::__1::allocator<boost::future<int> >
>::push_back' requested here
vec_.push_back(boost::forward<T0>(f));
^
/home/oberstet/boost/boost/thread/future.hpp:4768:15: note: in instantiation of function template specialization
'boost::detail::future_when_all_vector_shared_state<boost::future<int> >::future_when_all_vector_shared_state<boost::future<int> &, boost::future<int> &>' requested here
h(new factory_type(detail::values_tag_value, boost::forward<T0>(f), boost::forward<T>(futures)...));
^
test/test10.cpp:14:14: note: in instantiation of function template specialization 'boost::when_all<boost::future<int> &, boost::future<int> &>' requested here
auto f3 = when_all(f1, f2);
^
/home/oberstet/boost/boost/thread/future.hpp:1548:35: note: function has been explicitly marked deleted here
BOOST_THREAD_MOVABLE_ONLY(BOOST_THREAD_FUTURE)
^
/home/oberstet/boost/boost/thread/future.hpp:71:29: note: expanded from macro 'BOOST_THREAD_FUTURE'
#define BOOST_THREAD_FUTURE future
^
/home/oberstet/boost/boost/thread/detail/move.hpp:240:28: note: expanded from macro 'BOOST_THREAD_MOVABLE_ONLY'
BOOST_THREAD_NO_COPYABLE(TYPE) \
^
/home/oberstet/boost/boost/thread/detail/delete.hpp:55:35: note: expanded from macro 'BOOST_THREAD_NO_COPYABLE'
BOOST_THREAD_DELETE_COPY_CTOR(CLASS) \
^
/home/oberstet/boost/boost/thread/detail/delete.hpp:21:7: note: expanded from macro 'BOOST_THREAD_DELETE_COPY_CTOR'
CLASS(CLASS const&) = delete; \
^
1 warning and 1 error generated.
scons: *** [build/test/test10.o] Error 1
scons: building terminated because of errors.
oberstet@corei7ub1310:~/scm/tavendo/autobahn/AutobahnCpp$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment