Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error C2338: result_of<CallableType> is invalid; use
- result_of<CallableType(zero or more argument types)> instead.
- > 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.
- > 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
- > 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
- > with
- > [
- > T=::size_t,
- > Callable=rc::seq::index::<lambda_d2e59f21f2928ea5637514f3a710dd17>
- > ]
- template <typename Impl, typename... Args>
- Seq<typename std::result_of<Impl()>::type::ValueType> makeSeq(Args &&... args) {
- using SeqT = Seq<typename std::result_of<Impl()>::type::ValueType>;
- using ImplT = typename SeqT::template SeqImpl<Impl>;
- SeqT seq;
- seq.m_impl.reset(new ImplT(std::forward<Args>(args)...));
- return seq;
- }
- rc::gen::element<std::wstring>(L"foo");`
Add Comment
Please, Sign In to add comment