templates in nested structs #1728
Answered
by
myitcv
georgfaust
asked this question in
Q&A
-
templates are very useful to avoid redundancy
but how can I use a template in different levels of a nested struct?
the template has to match the complete path:
Is there a way to write templates that can be used in any level of a nested struct?
|
Beta Was this translation helpful? Give feedback.
Answered by
myitcv
May 24, 2022
Replies: 1 comment 2 replies
-
I assume this is a follow-up to #1725? If so, I'm further assuming you want to constrain the value of the field If so, this is not currently possible. But I've raised #165 (comment) as a discussion point in the query proposal. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
georgfaust
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I assume this is a follow-up to #1725?
If so, I'm further assuming you want to constrain the value of the field
f
to be the path from the root level?If so, this is not currently possible. But I've raised #165 (comment) as a discussion point in the query proposal.