You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Separation of metafunction and runtime regex code. (#1219)
* Separation of metafunction and runtime regex code.
* Move metafunction work into reflect.h2
Instead of a separate file in ./source
* Update of regression tests.
* Merge regex metafunction into cpp2::meta namespace
The run-time support library stays in `cpp2util.h` and can use the `cpp2::regex::` subnamespace there
The compile-time parts stay in `reflect.h2` and use the `cpp2::meta::` namespace there
Eventually this can be generalized for user-written metafunctions when those are supported, but for right now this keeps things consistent for the metafunctions supplied in-the-box with cppfront
* Add `add_runtime_support_include` to meta
For metafunctions that require runtime support via #includes to be injected into lowered Cpp1 programs
Also cleanup while I'm at it:
- remove headers from `common.h` that are now already included via `cpp2util.h`
- line up some thing that got un-lined-up (OCD)
---------
Co-authored-by: Herb Sutter <herb.sutter@gmail.com>
Copy file name to clipboardExpand all lines: regression-tests/test-results/gcc-10-c++20/pure2-bugfix-for-requires-clause-in-forward-declaration.cpp.output
In file included from pure2-bugfix-for-requires-clause-in-forward-declaration.cpp:7:
7
7
../../../include/cpp2util.h:10005:47: error: static assertion failed: GCC 11 or higher is required to support variables and type-scope functions that have a 'requires' clause. This includes a type-scope 'forward' parameter of non-wildcard type, such as 'func: (this, forward s: std::string)', which relies on being able to add a 'requires' clause - in that case, use 'forward s: _' instead if you need the result to compile with GCC 10.
8
8
pure2-bugfix-for-requires-clause-in-forward-declaration.cpp2:4:1: note: in expansion of macro ‘CPP2_REQUIRES_’
0 commit comments