typedef inheritance from a pure abstract base

前端 未结 1 859
终归单人心
终归单人心 2021-02-15 22:13

Edit: Found duplicate

I\'ve whittled down some problem code to the simplest working case to illustrate the following: my typedef in a pure abstract base class is not b

1条回答
  •  一整个雨季
    2021-02-15 22:40

    you should do

    typedef typename TemplateMethod::system_t system_t;
    

    to "inherit" typedef. typedef is not automatically inherited (if compiler is compliant).

    if you look through stack overflow, there will be duplicate of this question somewhere.

    0 讨论(0)
提交回复
热议问题