“used without template parameters”

后端 未结 5 2050
慢半拍i
慢半拍i 2021-02-01 03:34

I realize similar questions have been asked before, but I read a couple of those and still don\'t see where I\'m going wrong. When I simply write my class without separating th

5条回答
  •  星月不相逢
    2021-02-01 04:00

    Try putting

    template 
    

    above the implementation of VisitedSet::getSize() -- but beware that, in general, templated classes and functions should all be inlined. See the c++ faq here for more information.

提交回复
热议问题