Guest User

Untitled

a guest
Dec 14th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. error C2338: result_of<CallableType> is invalid; use
  2. result_of<CallableType(zero or more argument types)> instead.
  3.  
  4. > c:program files (x86)microsoft visual studio2017professionalvctoolsmsvc14.12.25827includetype_traits(1808): error C2338: result_of<CallableType> is invalid; use result_of<CallableType(zero or more argument types)> instead.
  5. > c:gitprojectincluderapidcheckseq.hpp(62): note: see reference to class template instantiation 'std::result_of<rc::seq::detail::IterateSeq<unsigned int,rc::seq::index::<lambda_d2e59f21f2928ea5637514f3a710dd17>> (__cdecl *)(void)>' being compiled
  6. > c:gitprojectincluderapidcheckseqcreate.hpp(178): note: see reference to function template instantiation 'rc::Seq<::size_t> rc::seq::iterate<::size_t,rc::seq::index::<lambda_d2e59f21f2928ea5637514f3a710dd17>>(T &&,Callable &&)' being compiled
  7. > with
  8. > [
  9. > T=::size_t,
  10. > Callable=rc::seq::index::<lambda_d2e59f21f2928ea5637514f3a710dd17>
  11. > ]
  12.  
  13. template <typename Impl, typename... Args>
  14. Seq<typename std::result_of<Impl()>::type::ValueType> makeSeq(Args &&... args) {
  15. using SeqT = Seq<typename std::result_of<Impl()>::type::ValueType>;
  16. using ImplT = typename SeqT::template SeqImpl<Impl>;
  17.  
  18. SeqT seq;
  19. seq.m_impl.reset(new ImplT(std::forward<Args>(args)...));
  20. return seq;
  21. }
  22.  
  23. rc::gen::element<std::wstring>(L"foo");`
Add Comment
Please, Sign In to add comment