Menu

#56 override seems not to work with pure virtual functions

1.0.0
accepted
None
Implementation
minor
0.4.0
defect
2012-09-10
2012-05-24
No

The override virtual specifier seems not to work with pure virtual functions.

For example, this seems not to work:

struct v
{
    virtual void f ( void ) = 0;
};

struct b : v
{
    void f ( void ) override
};

Ultimately, I should use C++11 override so this might remain as a limitation for C++03 if it could not be fixed.

Discussion

  • Lorenzo Caminiti

    • status changed from new to accepted
     
  • Lorenzo Caminiti

    • milestone changed from Future to 1.0.0
     

Log in to post a comment.