,这一回答是 认为“良好”守则,还是仅仅是一个ug?
我也想知道,这是如何预先宣布的(这两类)。
当我刚才用2个模板参数宣布这一类别时,它就总是这样做,不管其价值是什么<代码>flag。
I would like to do this because I have 2 special member functions which should behave differently on flag
being true and I don t feel like reimplementing the whole class. Also, it should have the same name. According to this example, this seems to be possible.
And I have to forward-declare it because I m creating a library in which we forward-declare everything.
任何想法?