Advertisement
Guest User

Error

a guest
Oct 18th, 2022
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.61 KB | None | 0 0
  1. /home/eshaan/Desktop/gsoc/mlpack/src/mlpack/methods/reinforcement_learning/replay/hindsight_replay.hpp:236:5: error: no matching function for call to ‘std::vector<mlpack::HindsightReplay<mlpack::BitFlipping>::Transition, std::allocator<mlpack::HindsightReplay<mlpack::BitFlipping>::Transition> >::push_back(<brace-enclosed initializer list>)
  2.   236 |     episodeTransitions.push_back({state, action, reward, nextState, isEnd, goal});
  3.       |     ^~~~~~~~~~~~~~~~~~
  4. In file included from /usr/include/c++/9/vector:67,
  5.                  from /home/eshaan/Desktop/gsoc/mlpack/src/mlpack/base.hpp:38,
  6.                  from /home/eshaan/Desktop/gsoc/mlpack/src/mlpack/prereqs.hpp:15,
  7.                  from /home/eshaan/Desktop/gsoc/mlpack/src/mlpack/core.hpp:35,
  8.                  from /home/eshaan/Desktop/gsoc/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.cxx:4,
  9.                  from /home/eshaan/Desktop/gsoc/mlpack/build/src/mlpack/tests/cotire/mlpack_test_CXX_prefix.hxx:4:
  10. /usr/include/c++/9/bits/stl_vector.h:1184:7: note: candidate:void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = mlpack::HindsightReplay<mlpack::BitFlipping>::Transition; _Alloc = std::allocator<mlpack::HindsightReplay<mlpack::BitFlipping>::Transition>; std::vector<_Tp, _Alloc>::value_type = mlpack::HindsightReplay<mlpack::BitFlipping>::Transition]
  11.  1184 |       push_back(const value_type& __x)
  12.       |       ^~~~~~~~~
  13. /usr/include/c++/9/bits/stl_vector.h:1184:35: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type&{aka ‘const mlpack::HindsightReplay<mlpack::BitFlipping>::Transition&}
  14.  1184 |       push_back(const value_type& __x)
  15.       |                 ~~~~~~~~~~~~~~~~~~^~~
  16. /usr/include/c++/9/bits/stl_vector.h:1200:7: note: candidate:void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = mlpack::HindsightReplay<mlpack::BitFlipping>::Transition; _Alloc = std::allocator<mlpack::HindsightReplay<mlpack::BitFlipping>::Transition>; std::vector<_Tp, _Alloc>::value_type = mlpack::HindsightReplay<mlpack::BitFlipping>::Transition]
  17.  1200 |       push_back(value_type&& __x)
  18.       |       ^~~~~~~~~
  19. /usr/include/c++/9/bits/stl_vector.h:1200:30: note:   no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<mlpack::HindsightReplay<mlpack::BitFlipping>::Transition, std::allocator<mlpack::HindsightReplay<mlpack::BitFlipping>::Transition> >::value_type&&{aka ‘mlpack::HindsightReplay<mlpack::BitFlipping>::Transition&&}
  20.  1200 |       push_back(value_type&& __x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement