c++ templates and inheritance, can templates be more selective

前端 未结 0 1339
慢半拍i
慢半拍i 2021-01-30 21:52

Can templates be limited to a class that inherits from other class.

for example template, T must inherit from Foo in order to be used in a template

相关标签:
回答
  • 消灭零回复
提交回复
热议问题