inheriting from class of specialized self?

后端 未结 2 1534
别那么骄傲
别那么骄傲 2021-01-19 00:43

Is this valid C++?

template
class any_iterator : public any_iterator
{ 
public:
        typedef any_iterator an         


        
2条回答
  •  借酒劲吻你
    2021-01-19 01:26

    10/2:

    The type denoted by a base-type-specifier shall be a class type that is not an incompletely defined class

    It is one manifestation of the bug of MSVC: its lack of two-phase name resolution.

提交回复
热议问题