How can I pull variadic template arguments off from the tail instead of the head?

后端 未结 4 1185
离开以前
离开以前 2021-02-04 13:10

For silly reasons I\'ll not go into here, I need the commented out line to work and the line above it it to not work:

template
         


        
4条回答
  •  情深已故
    2021-02-04 13:24

    I have done something similar using Boost.MPL and Boost.Fusion: compute the type sequence using the MPL facilities such as push_back, then convert it to a fusion::vector with fusion::as_vector and MPL adaptors. I already had a helper to convert a fusion::vector to std::tuple though.

提交回复
热议问题