Trouble with dependent types in templates

后端 未结 2 1163
庸人自扰
庸人自扰 2020-12-30 01:35

I\'m having trouble with templates and dependent types:

namespace Utils
{
    void PrintLine(const string& line, int tabLevel = 0);
    string getTabs(in         


        
2条回答
  •  执念已碎
    2020-12-30 02:31

    You need an additional typename keyword on this line:

    set findAll_if(typename set::iterator begin,typenameset::iterator end, Predicate pred) // warning C4346

提交回复
热议问题