Skip to content

Conversation

@DavisVaughan
Copy link
Member

They are disallowed here in C++20, which is enforced by new versions of gcc (14.1.0 and up)

From CRAN

  Found the following significant warnings:
    quarterly.h:203:12: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
    quarterly.h:204:31: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
    quarterly.h:258:23: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
    quarterly.h:259:33: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
    quarterly.h:371:39: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
    quarterly.h:372:49: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
    quarterly.h:374:49: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
    quarterly.h:432:34: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
    quarterly.h:433:44: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
    quarterly.h:436:44: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
    quarterly.h:438:44: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
    quarterly.h:439:44: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
    quarterly.h:440:44: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]

They are disallowed here in C++20, which is enforced by new versions of gcc (14.1.0 and up)
@DavisVaughan DavisVaughan merged commit 4c21e2b into main Jul 18, 2024
@DavisVaughan DavisVaughan deleted the fix/template-id-ctor branch July 18, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants