Is GCC 4.4.1 buggy by not accepting an injected-class-name in a ctor-initializer?

后端 未结 2 1930
礼貌的吻别
礼貌的吻别 2021-01-12 13:56

GCC 4.4.1 is refusing to find my injected-class-name within a ctor-initializer:

template 
struct Base
{
    Base(int x) {         


        
2条回答
  •  花落未央
    2021-01-12 14:11

    Use : Base(2) {}

    (edit: sorry, I just took away the CRTP element as it's not needed to reproduce)

提交回复
热议问题