Variadic template templates and perfect forwarding

前端 未结 3 1029
北恋
北恋 2020-12-07 16:24

This question on the object generator pattern got me thinking about ways to automate it.

Essentially, I want to automate the creation of functions like std::ma

3条回答
  •  佛祖请我去吃肉
    2020-12-07 17:05

    That's exactly right. I would expect it to work. So I think that GCC is in error with rejecting that. FWIW:

    #include 
    
    template