Advertisement
Guest User

Untitled

a guest
Mar 4th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.43 KB | None | 0 0
  1. In file included from /usr/include/c++/4.9/bits/hashtable.h:35:0,
  2. from /usr/include/c++/4.9/unordered_set:47,
  3. from test.cpp:1:
  4. /usr/include/c++/4.9/bits/hashtable_policy.h: In instantiation of ‘struct std::__detail::__is_noexcept_hash<Test, std::hash<Test> >’:
  5. /usr/include/c++/4.9/type_traits:134:12: required from ‘struct std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > >’
  6. /usr/include/c++/4.9/type_traits:145:38: required from ‘struct std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’
  7. /usr/include/c++/4.9/bits/unordered_set.h:95:63: required from ‘class std::unordered_set<Test>’
  8. test.cpp:9:25: required from here
  9. /usr/include/c++/4.9/bits/hashtable_policy.h:85:33: error: no match for call to ‘(const std::hash<Test>) (const Test&)’
  10. noexcept(declval<const _Hash&>()(declval<const _Key&>()))>
  11. ^
  12. In file included from /usr/include/c++/4.9/bits/move.h:57:0,
  13. from /usr/include/c++/4.9/bits/stl_pair.h:59,
  14. from /usr/include/c++/4.9/utility:70,
  15. from /usr/include/c++/4.9/unordered_set:38,
  16. from test.cpp:1:
  17. /usr/include/c++/4.9/type_traits: In instantiation of ‘struct std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’:
  18. /usr/include/c++/4.9/bits/unordered_set.h:95:63: required from ‘class std::unordered_set<Test>’
  19. test.cpp:9:25: required from here
  20. /usr/include/c++/4.9/type_traits:145:38: error: ‘value’ is not a member of ‘std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > >’
  21. : public integral_constant<bool, !_Pp::value>
  22. ^
  23. In file included from /usr/include/c++/4.9/unordered_set:48:0,
  24. from test.cpp:1:
  25. /usr/include/c++/4.9/bits/unordered_set.h: In instantiation of ‘class std::unordered_set<Test>’:
  26. test.cpp:9:25: required from here
  27. /usr/include/c++/4.9/bits/unordered_set.h:95:63: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’
  28. typedef __uset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable;
  29. ^
  30. /usr/include/c++/4.9/bits/unordered_set.h:102:45: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’
  31. typedef typename _Hashtable::key_type key_type;
  32. ^
  33. /usr/include/c++/4.9/bits/unordered_set.h:103:47: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’
  34. typedef typename _Hashtable::value_type value_type;
  35. ^
  36. /usr/include/c++/4.9/bits/unordered_set.h:104:43: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’
  37. typedef typename _Hashtable::hasher hasher;
  38. ^
  39. /usr/include/c++/4.9/bits/unordered_set.h:105:46: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’
  40. typedef typename _Hashtable::key_equal key_equal;
  41. ^
  42. /usr/include/c++/4.9/bits/unordered_set.h:106:51: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’
  43. typedef typename _Hashtable::allocator_type allocator_type;
  44. ^
  45. /usr/include/c++/4.9/bits/unordered_set.h:111:45: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’
  46. typedef typename _Hashtable::pointer pointer;
  47. ^
  48. /usr/include/c++/4.9/bits/unordered_set.h:112:50: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’
  49. typedef typename _Hashtable::const_pointer const_pointer;
  50. ^
  51. /usr/include/c++/4.9/bits/unordered_set.h:113:47: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’
  52. typedef typename _Hashtable::reference reference;
  53. ^
  54. /usr/include/c++/4.9/bits/unordered_set.h:114:52: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’
  55. typedef typename _Hashtable::const_reference const_reference;
  56. ^
  57. /usr/include/c++/4.9/bits/unordered_set.h:115:46: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’
  58. typedef typename _Hashtable::iterator iterator;
  59. ^
  60. /usr/include/c++/4.9/bits/unordered_set.h:116:51: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’
  61. typedef typename _Hashtable::const_iterator const_iterator;
  62. ^
  63. /usr/include/c++/4.9/bits/unordered_set.h:117:51: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’
  64. typedef typename _Hashtable::local_iterator local_iterator;
  65. ^
  66. /usr/include/c++/4.9/bits/unordered_set.h:118:57: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’
  67. typedef typename _Hashtable::const_local_iterator const_local_iterator;
  68. ^
  69. /usr/include/c++/4.9/bits/unordered_set.h:119:47: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’
  70. typedef typename _Hashtable::size_type size_type;
  71. ^
  72. /usr/include/c++/4.9/bits/unordered_set.h:120:52: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’
  73. typedef typename _Hashtable::difference_type difference_type;
  74. ^
  75. /usr/include/c++/4.9/bits/unordered_set.h:235:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’
  76. operator=(initializer_list<value_type> __l)
  77. ^
  78. /usr/include/c++/4.9/bits/unordered_set.h:329:2: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’
  79. emplace(_Args&&... __args)
  80. ^
  81. /usr/include/c++/4.9/bits/unordered_set.h:373:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’
  82. insert(const value_type& __x)
  83. ^
  84. /usr/include/c++/4.9/bits/unordered_set.h:377:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’
  85. insert(value_type&& __x)
  86. ^
  87. /usr/include/c++/4.9/bits/unordered_set.h:432:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’
  88. insert(initializer_list<value_type> __l)
  89. ^
  90. /usr/include/c++/4.9/bits/unordered_set.h:577:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’
  91. equal_range(const key_type& __x)
  92. ^
  93. /usr/include/c++/4.9/bits/unordered_set.h:581:7: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<std::hash<Test> >, std::__detail::__is_noexcept_hash<Test, std::hash<Test> > > >’
  94. equal_range(const key_type& __x) const
  95. ^
  96. test.cpp: In function ‘int main()’:
  97. test.cpp:9:25: error: no matching function for call to ‘std::unordered_set<Test>::unordered_set()’
  98. unordered_set<Test> h;
  99. ^
  100. test.cpp:9:25: note: candidates are:
  101. In file included from /usr/include/c++/4.9/unordered_set:48:0,
  102. from test.cpp:1:
  103. /usr/include/c++/4.9/bits/unordered_set.h:165:7: note: std::unordered_set<_Value, _Hash, _Pred, _Alloc>::unordered_set(std::unordered_set<_Value, _Hash, _Pred, _Alloc>&&) [with _Value = Test; _Hash = std::hash<Test>; _Pred = std::equal_to<Test>; _Alloc = std::allocator<Test>]
  104. unordered_set(unordered_set&&) = default;
  105. ^
  106. /usr/include/c++/4.9/bits/unordered_set.h:165:7: note: candidate expects 1 argument, 0 provided
  107. /usr/include/c++/4.9/bits/unordered_set.h:162:7: note: std::unordered_set<_Value, _Hash, _Pred, _Alloc>::unordered_set(const std::unordered_set<_Value, _Hash, _Pred, _Alloc>&) [with _Value = Test; _Hash = std::hash<Test>; _Pred = std::equal_to<Test>; _Alloc = std::allocator<Test>]
  108. unordered_set(const unordered_set&) = default;
  109. ^
  110. /usr/include/c++/4.9/bits/unordered_set.h:162:7: note: candidate expects 1 argument, 0 provided
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement