Menu

#37 TCLAP won't build with GCC 11.1

1.4.x
closed-duplicate
None
5
2021-09-19
2021-09-18
Nick Moss
No

Hi,

I have recently upgraded to GCC 11.1 in order to access some C++ 20 features and TCLAP fails to build. The issue is the copy constructors for ValueArg and MultiArg include the template argument which is no longer permitted (see https://eel.is/c++draft/diff.cpp17.class#2).

The fix is simple enough (and appears to be backwards compatible):

from
ValueArg<t>(const ValueArg<t>& rhs);
ValueArg<t>& operator=(const ValueArg<t>& rhs);
to
ValueArg(const ValueArg& rhs);
ValueArg& operator=(const ValueArg& rhs);</t></t></t></t>

Discussion

  • Daniel Aarno

    Daniel Aarno - 2021-09-19
    • status: open --> closed-duplicate
    • assigned_to: Daniel Aarno
     
  • Daniel Aarno

    Daniel Aarno - 2021-09-19
     

Log in to post a comment.