User Activity

  • Modified a comment on discussion Development on cppcheck

    I noticed that operators with no arguments in classes fail to parse when a requires clause is used. The current development version also fails to parse this. Here are two failing minimal examples and one that parses fine. template <typename T> struct test { operator int() requires true { return 0; } }; example.cpp:2:32: error: syntax error: operator [syntaxError] operator int() requires true { return 0; } ^ Active checkers: There was critical errors template <typename T> struct test { bool operator()()...

  • Posted a comment on discussion Development on cppcheck

    I noticed that operators with no arguments in classes fail to parse when a requires clause is used. The current development version also fails to parse this. Here are two failing minimal examples and one that parses fine. template <typename T> struct test { operator int() requires true { return 0; } }; example.cpp:2:32: error: syntax error: operator [syntaxError] operator int() requires true { return 0; } ^ Active checkers: There was critical errors template <typename T> struct test { bool operator()()...

View All

Personal Data

Username:
tnixeu
Joined:
2023-10-10 12:49:14.438000

Projects

  • No projects to display.

Personal Tools