Guest User

https://github.com/neobrain/nihstro/issues/55

a guest
Feb 14th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.16 KB | None | 0 0
  1. Scanning dependencies of target nihstro-assemble
  2. [ 4%] Building CXX object CMakeFiles/nihstro-assemble.dir/src/assembler.cpp.o
  3. In file included from /home/liam/nihstro/include/nihstro/parser_assembly.h:39:0,
  4. from /home/liam/nihstro/src/assembler.cpp:40:
  5. /home/liam/nihstro/include/nihstro/source_tree.h: In member function ‘void nihstro::SourceTreeIterator::UpdateChildIterator()’:
  6. /home/liam/nihstro/include/nihstro/source_tree.h:296:68: error: no match for ‘operator=’ (operand types are ‘boost::optional<boost::recursive_wrapper<nihstro::SourceTreeIterator> >’ and ‘nihstro::SourceTreeIterator’)
  7. child_iterator = SourceTreeIterator(node_iterator->tree);
  8. ^
  9. In file included from /usr/local/include/boost/optional.hpp:15:0,
  10. from /home/liam/nihstro/include/nihstro/parser_assembly.h:36,
  11. from /home/liam/nihstro/src/assembler.cpp:40:
  12. /usr/local/include/boost/optional/optional.hpp:902:5: note: candidate: template<class Expr> typename boost::enable_if<boost::optional_detail::is_optional_val_init_candidate<T, Expr>, boost::optional<T>&>::type boost::optional<T>::operator=(Expr&&) [with Expr = Expr; T = boost::recursive_wrapper<nihstro::SourceTreeIterator>]
  13. operator= ( Expr&& expr )
  14. ^~~~~~~~
  15. /usr/local/include/boost/optional/optional.hpp:902:5: note: template argument deduction/substitution failed:
  16. /usr/local/include/boost/optional/optional.hpp: In substitution of ‘template<class Expr> typename boost::enable_if<boost::optional_detail::is_optional_val_init_candidate<T, Expr>, boost::optional<T>&>::type boost::optional<T>::operator=(Expr&&) [with Expr = nihstro::SourceTreeIterator]’:
  17. /home/liam/nihstro/include/nihstro/source_tree.h:296:68: required from here
  18. /usr/local/include/boost/optional/optional.hpp:902:5: error: no type named ‘type’ in ‘struct boost::enable_if<boost::optional_detail::is_optional_val_init_candidate<boost::recursive_wrapper<nihstro::SourceTreeIterator>, nihstro::SourceTreeIterator>, boost::optional<boost::recursive_wrapper<nihstro::SourceTreeIterator> >&>’
  19. /usr/local/include/boost/optional/optional.hpp:922:15: note: candidate: template<class U> boost::optional<T>& boost::optional<T>::operator=(const boost::optional<U>&) [with U = U; T = boost::recursive_wrapper<nihstro::SourceTreeIterator>]
  20. optional& operator= ( optional<U> const& rhs )
  21. ^~~~~~~~
  22. /usr/local/include/boost/optional/optional.hpp:922:15: note: template argument deduction/substitution failed:
  23. In file included from /home/liam/nihstro/include/nihstro/parser_assembly.h:39:0,
  24. from /home/liam/nihstro/src/assembler.cpp:40:
  25. /home/liam/nihstro/include/nihstro/source_tree.h:296:68: note: ‘nihstro::SourceTreeIterator’ is not derived from ‘const boost::optional<T>’
  26. child_iterator = SourceTreeIterator(node_iterator->tree);
  27. ^
  28. In file included from /usr/local/include/boost/optional.hpp:15:0,
  29. from /home/liam/nihstro/include/nihstro/parser_assembly.h:36,
  30. from /home/liam/nihstro/src/assembler.cpp:40:
  31. /usr/local/include/boost/optional/optional.hpp:933:15: note: candidate: template<class U> boost::optional<T>& boost::optional<T>::operator=(boost::optional<U>&&) [with U = U; T = boost::recursive_wrapper<nihstro::SourceTreeIterator>]
  32. optional& operator= ( optional<U> && rhs )
  33. ^~~~~~~~
  34. /usr/local/include/boost/optional/optional.hpp:933:15: note: template argument deduction/substitution failed:
  35. In file included from /home/liam/nihstro/include/nihstro/parser_assembly.h:39:0,
  36. from /home/liam/nihstro/src/assembler.cpp:40:
  37. /home/liam/nihstro/include/nihstro/source_tree.h:296:68: note: ‘nihstro::SourceTreeIterator’ is not derived from ‘boost::optional<T>’
  38. child_iterator = SourceTreeIterator(node_iterator->tree);
  39. ^
  40. In file included from /usr/local/include/boost/optional.hpp:15:0,
  41. from /home/liam/nihstro/include/nihstro/parser_assembly.h:36,
  42. from /home/liam/nihstro/src/assembler.cpp:40:
  43. /usr/local/include/boost/optional/optional.hpp:943:15: note: candidate: boost::optional<T>& boost::optional<T>::operator=(const boost::optional<T>&) [with T = boost::recursive_wrapper<nihstro::SourceTreeIterator>]
  44. optional& operator= ( optional const& rhs )
  45. ^~~~~~~~
  46. /usr/local/include/boost/optional/optional.hpp:943:15: note: no known conversion for argument 1 from ‘nihstro::SourceTreeIterator’ to ‘const boost::optional<boost::recursive_wrapper<nihstro::SourceTreeIterator> >&’
  47. /usr/local/include/boost/optional/optional.hpp:951:15: note: candidate: boost::optional<T>& boost::optional<T>::operator=(boost::optional<T>&&) [with T = boost::recursive_wrapper<nihstro::SourceTreeIterator>]
  48. optional& operator= ( optional && rhs )
  49. ^~~~~~~~
  50. /usr/local/include/boost/optional/optional.hpp:951:15: note: no known conversion for argument 1 from ‘nihstro::SourceTreeIterator’ to ‘boost::optional<boost::recursive_wrapper<nihstro::SourceTreeIterator> >&&’
  51. /usr/local/include/boost/optional/optional.hpp:964:5: note: candidate: template<class T_> typename boost::enable_if<boost::is_same<T, typename boost::decay<T_>::type>, boost::optional<T>&>::type boost::optional<T>::operator=(T_&&) [with T_ = T_; T = boost::recursive_wrapper<nihstro::SourceTreeIterator>]
  52. operator= ( T_&& val )
  53. ^~~~~~~~
  54. /usr/local/include/boost/optional/optional.hpp:964:5: note: template argument deduction/substitution failed:
  55. /usr/local/include/boost/optional/optional.hpp: In substitution of ‘template<class T_> typename boost::enable_if<boost::is_same<T, typename boost::decay<T_>::type>, boost::optional<T>&>::type boost::optional<T>::operator=(T_&&) [with T_ = nihstro::SourceTreeIterator]’:
  56. /home/liam/nihstro/include/nihstro/source_tree.h:296:68: required from here
  57. /usr/local/include/boost/optional/optional.hpp:964:5: error: no type named ‘type’ in ‘struct boost::enable_if<boost::is_same<boost::recursive_wrapper<nihstro::SourceTreeIterator>, nihstro::SourceTreeIterator>, boost::optional<boost::recursive_wrapper<nihstro::SourceTreeIterator> >&>’
  58. /usr/local/include/boost/optional/optional.hpp:994:15: note: candidate: boost::optional<T>& boost::optional<T>::operator=(boost::none_t) [with T = boost::recursive_wrapper<nihstro::SourceTreeIterator>]
  59. optional& operator= ( none_t none_ ) BOOST_NOEXCEPT
  60. ^~~~~~~~
  61. /usr/local/include/boost/optional/optional.hpp:994:15: note: no known conversion for argument 1 from ‘nihstro::SourceTreeIterator’ to ‘boost::none_t’
  62. CMakeFiles/nihstro-assemble.dir/build.make:62: recipe for target 'CMakeFiles/nihstro-assemble.dir/src/assembler.cpp.o' failed
  63. make[2]: *** [CMakeFiles/nihstro-assemble.dir/src/assembler.cpp.o] Error 1
  64. CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/nihstro-assemble.dir/all' failed
  65. make[1]: *** [CMakeFiles/nihstro-assemble.dir/all] Error 2
  66. Makefile:138: recipe for target 'all' failed
  67. make: *** [all] Error 2
Add Comment
Please, Sign In to add comment