-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debug deduced type? #36
Comments
Fixed in the injection-2 branch. |
Works very well for the first case, thanks :) Can the constexpr {} block be inside class/function scopes? or just global scope? e.g. the template example still doesn't work due to: blah.cpp:102:5: error: expression is not an integral constant expression |
Looks like the error is specific to templated functions/classes. If they are non-templated, the constexpr{} block works as I'm expecting. |
in template classes, the error looks like: |
Would it be possible to output what a deduced type looks like?
E.g. for lambda, I'm thinking something like:
auto f = f=4{};
using f_type = std::decay<decltype(f)>::type;
constexpr {
compiler.debug($f_type);
}
Or for templates:
template
void func() {
constexpr {
compiler.debug($T);
}
}
The text was updated successfully, but these errors were encountered: