Advertisement
Guest User

Compiler error

a guest
Jun 28th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.47 KB | None | 0 0
  1. make all-recursive
  2. make[1]: Entering directory '/home/jonas/git/s3tp_fork_andre'
  3. Making all in s3tpc/
  4. make[2]: Entering directory '/home/jonas/git/s3tp_fork_andre/s3tpc'
  5. /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -std=c++14 -Wall -Wextra -pedantic -pthread -Wsuggest-override -g -O2 -MT s3tpc.lo -MD -MP -MF .deps/s3tpc.Tpo -c -o s3tpc.lo s3tpc.cpp
  6. libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -std=c++14 -Wall -Wextra -pedantic -pthread -Wsuggest-override -g -O2 -MT s3tpc.lo -MD -MP -MF .deps/s3tpc.Tpo -c s3tpc.cpp -fPIC -DPIC -o .libs/s3tpc.o
  7. In file included from /usr/include/c++/5/bits/hashtable.h:35:0,
  8. from /usr/include/c++/5/unordered_map:47,
  9. from s3tpc.h:9,
  10. from s3tpc.cpp:1:
  11. /usr/include/c++/5/bits/hashtable_policy.h: In instantiation of 'struct std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> >':
  12. /usr/include/c++/5/type_traits:137:12: required from 'struct std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > >'
  13. /usr/include/c++/5/type_traits:148:38: required from 'struct std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >'
  14. /usr/include/c++/5/bits/unordered_set.h:95:63: required from 'class std::unordered_set<s3tpc::ConnectionState>'
  15. s3tpc.h:61:28: required from here
  16. /usr/include/c++/5/bits/hashtable_policy.h:85:34: error: no match for call to '(const std::hash<s3tpc::ConnectionState>) (const s3tpc::ConnectionState&)'
  17. noexcept(declval<const _Hash&>()(declval<const _Key&>()))>
  18. ^
  19. In file included from /usr/include/c++/5/bits/move.h:57:0,
  20. from /usr/include/c++/5/bits/stl_pair.h:59,
  21. from /usr/include/c++/5/bits/stl_algobase.h:64,
  22. from /usr/include/c++/5/memory:62,
  23. from s3tpc.h:6,
  24. from s3tpc.cpp:1:
  25. /usr/include/c++/5/type_traits: In instantiation of 'struct std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >':
  26. /usr/include/c++/5/bits/unordered_set.h:95:63: required from 'class std::unordered_set<s3tpc::ConnectionState>'
  27. s3tpc.h:61:28: required from here
  28. /usr/include/c++/5/type_traits:148:38: error: 'value' is not a member of 'std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > >'
  29. : public integral_constant<bool, !_Pp::value>
  30. ^
  31. In file included from /usr/include/c++/5/unordered_set:48:0,
  32. from s3tpc.h:10,
  33. from s3tpc.cpp:1:
  34. /usr/include/c++/5/bits/unordered_set.h: In instantiation of 'class std::unordered_set<s3tpc::ConnectionState>':
  35. s3tpc.h:61:28: required from here
  36. /usr/include/c++/5/bits/unordered_set.h:95:63: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >'
  37. typedef __uset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable;
  38. ^
  39. /usr/include/c++/5/bits/unordered_set.h:102:45: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >'
  40. typedef typename _Hashtable::key_type key_type;
  41. ^
  42. /usr/include/c++/5/bits/unordered_set.h:103:47: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >'
  43. typedef typename _Hashtable::value_type value_type;
  44. ^
  45. /usr/include/c++/5/bits/unordered_set.h:104:43: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >'
  46. typedef typename _Hashtable::hasher hasher;
  47. ^
  48. /usr/include/c++/5/bits/unordered_set.h:105:46: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >'
  49. typedef typename _Hashtable::key_equal key_equal;
  50. ^
  51. /usr/include/c++/5/bits/unordered_set.h:106:51: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >'
  52. typedef typename _Hashtable::allocator_type allocator_type;
  53. ^
  54. /usr/include/c++/5/bits/unordered_set.h:111:45: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >'
  55. typedef typename _Hashtable::pointer pointer;
  56. ^
  57. /usr/include/c++/5/bits/unordered_set.h:112:50: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >'
  58. typedef typename _Hashtable::const_pointer const_pointer;
  59. ^
  60. /usr/include/c++/5/bits/unordered_set.h:113:47: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >'
  61. typedef typename _Hashtable::reference reference;
  62. ^
  63. /usr/include/c++/5/bits/unordered_set.h:114:52: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >'
  64. typedef typename _Hashtable::const_reference const_reference;
  65. ^
  66. /usr/include/c++/5/bits/unordered_set.h:115:46: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >'
  67. typedef typename _Hashtable::iterator iterator;
  68. ^
  69. /usr/include/c++/5/bits/unordered_set.h:116:51: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >'
  70. typedef typename _Hashtable::const_iterator const_iterator;
  71. ^
  72. /usr/include/c++/5/bits/unordered_set.h:117:51: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >'
  73. typedef typename _Hashtable::local_iterator local_iterator;
  74. ^
  75. /usr/include/c++/5/bits/unordered_set.h:118:57: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >'
  76. typedef typename _Hashtable::const_local_iterator const_local_iterator;
  77. ^
  78. /usr/include/c++/5/bits/unordered_set.h:119:47: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >'
  79. typedef typename _Hashtable::size_type size_type;
  80. ^
  81. /usr/include/c++/5/bits/unordered_set.h:120:52: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >'
  82. typedef typename _Hashtable::difference_type difference_type;
  83. ^
  84. /usr/include/c++/5/bits/unordered_set.h:274:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >'
  85. operator=(initializer_list<value_type> __l)
  86. ^
  87. /usr/include/c++/5/bits/unordered_set.h:368:2: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >'
  88. emplace(_Args&&... __args)
  89. ^
  90. /usr/include/c++/5/bits/unordered_set.h:412:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >'
  91. insert(const value_type& __x)
  92. ^
  93. /usr/include/c++/5/bits/unordered_set.h:416:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >'
  94. insert(value_type&& __x)
  95. ^
  96. /usr/include/c++/5/bits/unordered_set.h:471:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >'
  97. insert(initializer_list<value_type> __l)
  98. ^
  99. /usr/include/c++/5/bits/unordered_set.h:616:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >'
  100. equal_range(const key_type& __x)
  101. ^
  102. /usr/include/c++/5/bits/unordered_set.h:620:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<s3tpc::ConnectionState> >, std::__detail::__is_noexcept_hash<s3tpc::ConnectionState, std::hash<s3tpc::ConnectionState> > > >'
  103. equal_range(const key_type& __x) const
  104. ^
  105. In file included from s3tpc.cpp:1:0:
  106. s3tpc.h: In member function 'std::shared_ptr<_Tp1> s3tpc::S3TPClient::create_and_wait_for_connection_event(uint16_t, const std::unordered_set<s3tpc::ConnectionState>&, Args&& ...)':
  107. s3tpc.h:61:29: error: 'const class std::unordered_set<s3tpc::ConnectionState>' has no member named 'find'
  108. if (!connection || states.find(connection->get_state()) == std::end(states)) {
  109. ^
  110. s3tpc.h:61:77: error: no matching function for call to 'end(const std::unordered_set<s3tpc::ConnectionState>&)'
  111. if (!connection || states.find(connection->get_state()) == std::end(states)) {
  112. ^
  113. In file included from /usr/include/c++/5/utility:75:0,
  114. from /usr/include/c++/5/tuple:38,
  115. from /usr/include/c++/5/functional:55,
  116. from /usr/include/c++/5/memory:79,
  117. from s3tpc.h:6,
  118. from s3tpc.cpp:1:
  119. /usr/include/c++/5/initializer_list:99:5: note: candidate: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
  120. end(initializer_list<_Tp> __ils) noexcept
  121. ^
  122. /usr/include/c++/5/initializer_list:99:5: note: template argument deduction/substitution failed:
  123. In file included from s3tpc.cpp:1:0:
  124. s3tpc.h:61:77: note: 'std::unordered_set<s3tpc::ConnectionState>' is not derived from 'std::initializer_list<_Tp>'
  125. if (!connection || states.find(connection->get_state()) == std::end(states)) {
  126. ^
  127. In file included from /usr/include/c++/5/string:51:0,
  128. from /usr/include/c++/5/stdexcept:39,
  129. from /usr/include/c++/5/array:38,
  130. from /usr/include/c++/5/tuple:39,
  131. from /usr/include/c++/5/functional:55,
  132. from /usr/include/c++/5/memory:79,
  133. from s3tpc.h:6,
  134. from s3tpc.cpp:1:
  135. /usr/include/c++/5/bits/range_access.h:68:5: note: candidate: template<class _Container> decltype (__cont.end()) std::end(_Container&)
  136. end(_Container& __cont) -> decltype(__cont.end())
  137. ^
  138. /usr/include/c++/5/bits/range_access.h:68:5: note: template argument deduction/substitution failed:
  139. /usr/include/c++/5/bits/range_access.h: In substitution of 'template<class _Container> decltype (__cont.end()) std::end(_Container&) [with _Container = const std::unordered_set<s3tpc::ConnectionState>]':
  140. s3tpc.h:61:77: required from here
  141. /usr/include/c++/5/bits/range_access.h:68:5: error: 'const class std::unordered_set<s3tpc::ConnectionState>' has no member named 'end'
  142. /usr/include/c++/5/bits/range_access.h:78:5: note: candidate: template<class _Container> decltype (__cont.end()) std::end(const _Container&)
  143. end(const _Container& __cont) -> decltype(__cont.end())
  144. ^
  145. /usr/include/c++/5/bits/range_access.h:78:5: note: template argument deduction/substitution failed:
  146. /usr/include/c++/5/bits/range_access.h: In substitution of 'template<class _Container> decltype (__cont.end()) std::end(const _Container&) [with _Container = std::unordered_set<s3tpc::ConnectionState>]':
  147. s3tpc.h:61:77: required from here
  148. /usr/include/c++/5/bits/range_access.h:78:5: error: 'const class std::unordered_set<s3tpc::ConnectionState>' has no member named 'end'
  149. /usr/include/c++/5/bits/range_access.h:97:5: note: candidate: template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::end(_Tp (&)[_Nm])
  150. end(_Tp (&__arr)[_Nm])
  151. ^
  152. /usr/include/c++/5/bits/range_access.h:97:5: note: template argument deduction/substitution failed:
  153. In file included from s3tpc.cpp:1:0:
  154. s3tpc.h:61:77: note: mismatched types '_Tp [_Nm]' and 'const std::unordered_set<s3tpc::ConnectionState>'
  155. if (!connection || states.find(connection->get_state()) == std::end(states)) {
  156. ^
  157. In file included from /usr/include/c++/5/string:51:0,
  158. from /usr/include/c++/5/stdexcept:39,
  159. from /usr/include/c++/5/array:38,
  160. from /usr/include/c++/5/tuple:39,
  161. from /usr/include/c++/5/functional:55,
  162. from /usr/include/c++/5/memory:79,
  163. from s3tpc.h:6,
  164. from s3tpc.cpp:1:
  165. /usr/include/c++/5/bits/range_access.h:106:31: note: candidate: template<class _Tp> _Tp* std::end(std::valarray<_Tp>&)
  166. template<typename _Tp> _Tp* end(valarray<_Tp>&);
  167. ^
  168. /usr/include/c++/5/bits/range_access.h:106:31: note: template argument deduction/substitution failed:
  169. In file included from s3tpc.cpp:1:0:
  170. s3tpc.h:61:77: note: types 'std::valarray<_Tp>' and 'const std::unordered_set<s3tpc::ConnectionState>' have incompatible cv-qualifiers
  171. if (!connection || states.find(connection->get_state()) == std::end(states)) {
  172. ^
  173. In file included from /usr/include/c++/5/string:51:0,
  174. from /usr/include/c++/5/stdexcept:39,
  175. from /usr/include/c++/5/array:38,
  176. from /usr/include/c++/5/tuple:39,
  177. from /usr/include/c++/5/functional:55,
  178. from /usr/include/c++/5/memory:79,
  179. from s3tpc.h:6,
  180. from s3tpc.cpp:1:
  181. /usr/include/c++/5/bits/range_access.h:107:37: note: candidate: template<class _Tp> const _Tp* std::end(const std::valarray<_Tp>&)
  182. template<typename _Tp> const _Tp* end(const valarray<_Tp>&);
  183. ^
  184. /usr/include/c++/5/bits/range_access.h:107:37: note: template argument deduction/substitution failed:
  185. In file included from s3tpc.cpp:1:0:
  186. s3tpc.h:61:77: note: 'const std::unordered_set<s3tpc::ConnectionState>' is not derived from 'const std::valarray<_Tp>'
  187. if (!connection || states.find(connection->get_state()) == std::end(states)) {
  188. ^
  189. s3tpc.cpp: In member function 'int s3tpc::S3TPClient::close_connection(uint16_t)':
  190. s3tpc.cpp:82:74: error: no matching function for call to 's3tpc::S3TPClient::create_and_wait_for_connection_event_succeeded(uint16_t&, <brace-enclosed initializer list>)'
  191. ConnectionState::CONNECTED_LISTENER, ConnectionState::CONNECTED_PEER });
  192. ^
  193. In file included from s3tpc.cpp:1:0:
  194. s3tpc.h:71:6: note: candidate: template<class EventType, class ... Args> int s3tpc::S3TPClient::create_and_wait_for_connection_event_succeeded(uint16_t, const std::unordered_set<s3tpc::ConnectionState>&, Args&& ...)
  195. int create_and_wait_for_connection_event_succeeded(uint16_t id,
  196. ^
  197. s3tpc.h:71:6: note: template argument deduction/substitution failed:
  198. s3tpc.cpp:82:74: note: cannot convert '{REGISTERED, LISTENING, CONNECTED_LISTENER, CONNECTED_PEER}' (type '<brace-enclosed initializer list>') to type 'const std::unordered_set<s3tpc::ConnectionState>&'
  199. ConnectionState::CONNECTED_LISTENER, ConnectionState::CONNECTED_PEER });
  200. ^
  201. s3tpc.cpp: In member function 'int s3tpc::S3TPClient::connect(uint16_t, uint16_t)':
  202. s3tpc.cpp:88:39: error: no matching function for call to 's3tpc::S3TPClient::create_and_wait_for_connection_event_succeeded(uint16_t&, <brace-enclosed initializer list>, uint16_t&)'
  203. ConnectionState::REGISTERED }, port);
  204. ^
  205. In file included from s3tpc.cpp:1:0:
  206. s3tpc.h:71:6: note: candidate: template<class EventType, class ... Args> int s3tpc::S3TPClient::create_and_wait_for_connection_event_succeeded(uint16_t, const std::unordered_set<s3tpc::ConnectionState>&, Args&& ...)
  207. int create_and_wait_for_connection_event_succeeded(uint16_t id,
  208. ^
  209. s3tpc.h:71:6: note: template argument deduction/substitution failed:
  210. s3tpc.cpp:88:39: note: cannot convert '{REGISTERED}' (type '<brace-enclosed initializer list>') to type 'const std::unordered_set<s3tpc::ConnectionState>&'
  211. ConnectionState::REGISTERED }, port);
  212. ^
  213. s3tpc.cpp: In member function 'int s3tpc::S3TPClient::listen(uint16_t, uint16_t)':
  214. s3tpc.cpp:94:39: error: no matching function for call to 's3tpc::S3TPClient::create_and_wait_for_connection_event_succeeded(uint16_t&, <brace-enclosed initializer list>, uint16_t&)'
  215. ConnectionState::REGISTERED }, port);
  216. ^
  217. In file included from s3tpc.cpp:1:0:
  218. s3tpc.h:71:6: note: candidate: template<class EventType, class ... Args> int s3tpc::S3TPClient::create_and_wait_for_connection_event_succeeded(uint16_t, const std::unordered_set<s3tpc::ConnectionState>&, Args&& ...)
  219. int create_and_wait_for_connection_event_succeeded(uint16_t id,
  220. ^
  221. s3tpc.h:71:6: note: template argument deduction/substitution failed:
  222. s3tpc.cpp:94:39: note: cannot convert '{REGISTERED}' (type '<brace-enclosed initializer list>') to type 'const std::unordered_set<s3tpc::ConnectionState>&'
  223. ConnectionState::REGISTERED }, port);
  224. ^
  225. s3tpc.cpp: In member function 'int s3tpc::S3TPClient::wait_for_peer(uint16_t)':
  226. s3tpc.cpp:100:32: error: no matching function for call to 's3tpc::S3TPClient::create_and_wait_for_connection_event_succeeded(uint16_t&, <brace-enclosed initializer list>)'
  227. ConnectionState::LISTENING });
  228. ^
  229. In file included from s3tpc.cpp:1:0:
  230. s3tpc.h:71:6: note: candidate: template<class EventType, class ... Args> int s3tpc::S3TPClient::create_and_wait_for_connection_event_succeeded(uint16_t, const std::unordered_set<s3tpc::ConnectionState>&, Args&& ...)
  231. int create_and_wait_for_connection_event_succeeded(uint16_t id,
  232. ^
  233. s3tpc.h:71:6: note: template argument deduction/substitution failed:
  234. s3tpc.cpp:100:32: note: cannot convert '{LISTENING}' (type '<brace-enclosed initializer list>') to type 'const std::unordered_set<s3tpc::ConnectionState>&'
  235. ConnectionState::LISTENING });
  236. ^
  237. s3tpc.cpp: In member function 'int s3tpc::S3TPClient::receive(uint16_t, char*, uint16_t)':
  238. s3tpc.cpp:107:25: error: no matching function for call to 's3tpc::S3TPClient::create_and_wait_for_connection_event(uint16_t&, <brace-enclosed initializer list>, char*&, uint16_t&)'
  239. }, destination, length);
  240. ^
  241. In file included from s3tpc.cpp:1:0:
  242. s3tpc.h:58:29: note: candidate: template<class EventType, class ... Args> std::shared_ptr<_Tp1> s3tpc::S3TPClient::create_and_wait_for_connection_event(uint16_t, const std::unordered_set<s3tpc::ConnectionState>&, Args&& ...)
  243. std::shared_ptr<EventType> create_and_wait_for_connection_event(uint16_t id,
  244. ^
  245. s3tpc.h:58:29: note: template argument deduction/substitution failed:
  246. s3tpc.cpp:107:25: note: cannot convert '{CONNECTED_LISTENER, CONNECTED_PEER}' (type '<brace-enclosed initializer list>') to type 'const std::unordered_set<s3tpc::ConnectionState>&'
  247. }, destination, length);
  248. ^
  249. s3tpc.cpp: In member function 'int s3tpc::S3TPClient::send(uint16_t, const char*, uint16_t)':
  250. s3tpc.cpp:119:18: error: no matching function for call to 's3tpc::S3TPClient::create_and_wait_for_connection_event_succeeded(uint16_t&, <brace-enclosed initializer list>, const char*&, uint16_t&)'
  251. }, data, length);
  252. ^
  253. In file included from s3tpc.cpp:1:0:
  254. s3tpc.h:71:6: note: candidate: template<class EventType, class ... Args> int s3tpc::S3TPClient::create_and_wait_for_connection_event_succeeded(uint16_t, const std::unordered_set<s3tpc::ConnectionState>&, Args&& ...)
  255. int create_and_wait_for_connection_event_succeeded(uint16_t id,
  256. ^
  257. s3tpc.h:71:6: note: template argument deduction/substitution failed:
  258. s3tpc.cpp:119:18: note: cannot convert '{CONNECTED_LISTENER, CONNECTED_PEER}' (type '<brace-enclosed initializer list>') to type 'const std::unordered_set<s3tpc::ConnectionState>&'
  259. }, data, length);
  260. ^
  261. Makefile:592: recipe for target 's3tpc.lo' failed
  262. make[2]: *** [s3tpc.lo] Error 1
  263. make[2]: Leaving directory '/home/jonas/git/s3tp_fork_andre/s3tpc'
  264. Makefile:452: recipe for target 'all-recursive' failed
  265. make[1]: *** [all-recursive] Error 1
  266. make[1]: Leaving directory '/home/jonas/git/s3tp_fork_andre'
  267. Makefile:363: recipe for target 'all' failed
  268. make: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement