Conditional compile-time inclusion/exclusion of code based on template argument(s)?

后端 未结 5 2018
陌清茗
陌清茗 2020-12-08 07:39

Consider the following class, with the inner struct Y being used as a type, eg. in templates, later on:

template
class X{
  templat         


        
5条回答
  •  温柔的废话
    2020-12-08 08:17

    How about this approach - http://sergey-miryanov.blogspot.com/2009/03/template-class-overriding.html? (sorry for russian)

提交回复
热议问题