hide function template, declare specializations

后端 未结 4 1069
眼角桃花
眼角桃花 2021-01-22 17:46

This is a followup to C++ templates: prevent instantiation of base template

I use templates to achieve function overloading without the mess of implicit type conversions

4条回答
  •  悲&欢浪女
    2021-01-22 18:30

    I don't believe it's possible to do what you want. See these FAQs for more info:

    How can I avoid linker errors with my template functions?

    How can I avoid linker errors with my template classes?

提交回复
热议问题