Menu

#327 QwtSeriesStore fails with C++20

None
closed
nobody
None
5
2021-06-13
2021-06-05
marcel
No

Starting with C++20, a simple-template-id is no longer allowed as the declarator-id for constructors/destructors. Compiling a program that includes qwt_series_store.h with C++20 will fail on recent compilers. See https://timsong-cpp.github.io/cppwp/n4861/diff.cpp17#class-2 for details. Removing '<T>' should be sufficient to fix this bug.

Other classes may be affected by this as well, but so far I've only encountered the problem with QwtSeriesStore.

Discussion

  • Uwe Rathmann

    Uwe Rathmann - 2021-06-13
    • status: open --> closed
    • Group: -->
     
  • Uwe Rathmann

    Uwe Rathmann - 2021-06-13

    fixed in all branches >= 6.2

     

Anonymous
Anonymous

Add attachments
Cancel