Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 9.18 KB | None | 0 0
  1. auto viewparents=R->view<QuTransformComponent,QuTransformModifiedComponent,QuTransformHasChildrenComponent>();
  2. viewparents.each([](entt::entity e,auto &,auto &,auto &){
  3.         })  ;
  4.  
  5.  
  6. /*
  7.  
  8. /home/pablo/projects/quill/quill/3rdparty/entt/src/entt/entity/view.hpp: In instantiation of ‘void entt::basic_view<Entity, entt::exclude_t<Exclude ...>, Component ...>::traverse(Func, entt::type_list<Weak ...>) const [with Comp = QuTransformComponent; Func = QuTransformSystem::processModifications() const::<lambda(entt::entity, auto:63&, auto:64&, auto:65&)>; Type = {QuTransformComponent, QuTransformModifiedComponent}; Entity = entt::entity; Exclude = {}; Component = {QuTransformComponent, QuTransformModifiedComponent, QuTransformHasChildrenComponent}]’:
  9. /home/pablo/projects/quill/quill/3rdparty/entt/src/entt/entity/view.hpp:456:9:   required from ‘void entt::basic_view<Entity, entt::exclude_t<Exclude ...>, Component ...>::each(Func) const [with Comp = QuTransformComponent; Func = QuTransformSystem::processModifications() const::<lambda(entt::entity, auto:63&, auto:64&, auto:65&)>; Entity = entt::entity; Exclude = {}; Component = {QuTransformComponent, QuTransformModifiedComponent, QuTransformHasChildrenComponent}]’
  10. /home/pablo/projects/quill/quill/3rdparty/entt/src/entt/entity/view.hpp:434:60:   required from ‘void entt::basic_view<Entity, entt::exclude_t<Exclude ...>, Component ...>::each(Func) const [with Func = QuTransformSystem::processModifications() const::<lambda(entt::entity, auto:63&, auto:64&, auto:65&)>; Entity = entt::entity; Exclude = {}; Component = {QuTransformComponent, QuTransformModifiedComponent, QuTransformHasChildrenComponent}]’
  11. /home/pablo/projects/quill/quill/qutransformsystem.cpp:70:10:   required from here
  12. /home/pablo/projects/quill/quill/3rdparty/entt/src/entt/entity/view.hpp:191:29: error: no match for call to ‘(QuTransformSystem::processModifications() const::<lambda(entt::entity, auto:63&, auto:64&, auto:65&)>) (const entt::entity&, QuTransformComponent&, entt::storage<entt::entity, QuTransformModifiedComponent, void>::object_type&)’
  13.   191 |                         func(entt, get<Comp, Type>(curr, std::get<pool_type<Type> *>(pools), entt)...);
  14.       |                         ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. /home/pablo/projects/quill/quill/qutransformsystem.cpp:69:26: note: candidate: ‘template<class auto:63, class auto:64, class auto:65> QuTransformSystem::processModifications() const::<lambda(entt::entity, auto:63&, auto:64&, auto:65&)>’
  16.    69 |         viewparents.each([](entt::entity e,auto &,auto &,auto &){
  17.       |                          ^
  18. /home/pablo/projects/quill/quill/qutransformsystem.cpp:69:26: note:   template argument deduction/substitution failed:
  19. In file included from /home/pablo/projects/quill/quill/3rdparty/entt/src/entt/entity/registry.hpp:27,
  20.                  from /home/pablo/projects/quill/quill/quecs.h:6,
  21.                  from /home/pablo/projects/quill/quill/qusystemecs.h:3,
  22.                  from /home/pablo/projects/quill/quill/qutransformsystem.h:3,
  23.                  from /home/pablo/projects/quill/quill/qutransformsystem.cpp:1:
  24. /home/pablo/projects/quill/quill/3rdparty/entt/src/entt/entity/view.hpp:191:29: note:   candidate expects 4 arguments, 3 provided
  25.   191 |                         func(entt, get<Comp, Type>(curr, std::get<pool_type<Type> *>(pools), entt)...);
  26.       |                         ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  27. /home/pablo/projects/quill/quill/3rdparty/entt/src/entt/entity/view.hpp: In instantiation of ‘void entt::basic_view<Entity, entt::exclude_t<Exclude ...>, Component ...>::traverse(Func, entt::type_list<Weak ...>) const [with Comp = QuTransformModifiedComponent; Func = QuTransformSystem::processModifications() const::<lambda(entt::entity, auto:63&, auto:64&, auto:65&)>; Type = {QuTransformComponent, QuTransformModifiedComponent}; Entity = entt::entity; Exclude = {}; Component = {QuTransformComponent, QuTransformModifiedComponent, QuTransformHasChildrenComponent}]’:
  28. /home/pablo/projects/quill/quill/3rdparty/entt/src/entt/entity/view.hpp:456:9:   required from ‘void entt::basic_view<Entity, entt::exclude_t<Exclude ...>, Component ...>::each(Func) const [with Comp = QuTransformModifiedComponent; Func = QuTransformSystem::processModifications() const::<lambda(entt::entity, auto:63&, auto:64&, auto:65&)>; Entity = entt::entity; Exclude = {}; Component = {QuTransformComponent, QuTransformModifiedComponent, QuTransformHasChildrenComponent}]’
  29. /home/pablo/projects/quill/quill/3rdparty/entt/src/entt/entity/view.hpp:434:60:   required from ‘void entt::basic_view<Entity, entt::exclude_t<Exclude ...>, Component ...>::each(Func) const [with Func = QuTransformSystem::processModifications() const::<lambda(entt::entity, auto:63&, auto:64&, auto:65&)>; Entity = entt::entity; Exclude = {}; Component = {QuTransformComponent, QuTransformModifiedComponent, QuTransformHasChildrenComponent}]’
  30. /home/pablo/projects/quill/quill/qutransformsystem.cpp:70:10:   required from here
  31. /home/pablo/projects/quill/quill/3rdparty/entt/src/entt/entity/view.hpp:191:29: error: no match for call to ‘(QuTransformSystem::processModifications() const::<lambda(entt::entity, auto:63&, auto:64&, auto:65&)>) (const entt::entity&, entt::storage<entt::entity, QuTransformComponent, void>::object_type&, QuTransformModifiedComponent&)’
  32. /home/pablo/projects/quill/quill/qutransformsystem.cpp:69:26: note: candidate: ‘template<class auto:63, class auto:64, class auto:65> QuTransformSystem::processModifications() const::<lambda(entt::entity, auto:63&, auto:64&, auto:65&)>’
  33.    69 |         viewparents.each([](entt::entity e,auto &,auto &,auto &){
  34.       |                          ^
  35. /home/pablo/projects/quill/quill/qutransformsystem.cpp:69:26: note:   template argument deduction/substitution failed:
  36. In file included from /home/pablo/projects/quill/quill/3rdparty/entt/src/entt/entity/registry.hpp:27,
  37.                  from /home/pablo/projects/quill/quill/quecs.h:6,
  38.                  from /home/pablo/projects/quill/quill/qusystemecs.h:3,
  39.                  from /home/pablo/projects/quill/quill/qutransformsystem.h:3,
  40.                  from /home/pablo/projects/quill/quill/qutransformsystem.cpp:1:
  41. /home/pablo/projects/quill/quill/3rdparty/entt/src/entt/entity/view.hpp:191:29: note:   candidate expects 4 arguments, 3 provided
  42.   191 |                         func(entt, get<Comp, Type>(curr, std::get<pool_type<Type> *>(pools), entt)...);
  43.       |                         ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  44. /home/pablo/projects/quill/quill/3rdparty/entt/src/entt/entity/view.hpp: In instantiation of ‘void entt::basic_view<Entity, entt::exclude_t<Exclude ...>, Component ...>::traverse(Func, entt::type_list<Weak ...>) const [with Comp = QuTransformHasChildrenComponent; Func = QuTransformSystem::processModifications() const::<lambda(entt::entity, auto:63&, auto:64&, auto:65&)>; Type = {QuTransformComponent, QuTransformModifiedComponent}; Entity = entt::entity; Exclude = {}; Component = {QuTransformComponent, QuTransformModifiedComponent, QuTransformHasChildrenComponent}]’:
  45. /home/pablo/projects/quill/quill/3rdparty/entt/src/entt/entity/view.hpp:456:9:   required from ‘void entt::basic_view<Entity, entt::exclude_t<Exclude ...>, Component ...>::each(Func) const [with Comp = QuTransformHasChildrenComponent; Func = QuTransformSystem::processModifications() const::<lambda(entt::entity, auto:63&, auto:64&, auto:65&)>; Entity = entt::entity; Exclude = {}; Component = {QuTransformComponent, QuTransformModifiedComponent, QuTransformHasChildrenComponent}]’
  46. /home/pablo/projects/quill/quill/3rdparty/entt/src/entt/entity/view.hpp:434:60:   required from ‘void entt::basic_view<Entity, entt::exclude_t<Exclude ...>, Component ...>::each(Func) const [with Func = QuTransformSystem::processModifications() const::<lambda(entt::entity, auto:63&, auto:64&, auto:65&)>; Entity = entt::entity; Exclude = {}; Component = {QuTransformComponent, QuTransformModifiedComponent, QuTransformHasChildrenComponent}]’
  47. /home/pablo/projects/quill/quill/qutransformsystem.cpp:70:10:   required from here
  48. /home/pablo/projects/quill/quill/3rdparty/entt/src/entt/entity/view.hpp:201:29: error: no match for call to ‘(QuTransformSystem::processModifications() const::<lambda(entt::entity, auto:63&, auto:64&, auto:65&)>) (const entt::entity&, entt::storage<entt::entity, QuTransformComponent, void>::object_type&, entt::storage<entt::entity, QuTransformModifiedComponent, void>::object_type&)’
  49.   201 |                         func(entt, std::get<pool_type<Type> *>(pools)->get(entt)...);
  50.       |                         ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  51. /home/pablo/projects/quill/quill/qutransformsystem.cpp:69:26: note: candidate: ‘template<class auto:63, class auto:64, class auto:65> QuTransformSystem::processModifications() const::<lambda(entt::entity, auto:63&, auto:64&, auto:65&)>’
  52.    69 |         viewparents.each([](entt::entity e,auto &,auto &,auto &){
  53.       |                          ^
  54. /home/pablo/projects/quill/quill/qutransformsystem.cpp:69:26: note:   template argument deduction/substitution failed:
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement