"dynamic" default value? #5509
-
My case is similar to #3705 (comment), except that in my case the default value needs to be computed using a function so i can't (?) use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Not too sure what is relevant from that link. Could you give a reproduction case of what you are attempting and isn't working so I can better understand the problem you are having so I can provide a more useful answer. |
Beta Was this translation helpful? Give feedback.
Sorry, i now realize how confusing my question is. What i was asking is, essentially, whether it is possible to do function calls in
default_value_t
(hence the "dynamic default value" title). I somehow didn't even think that i could just literally write a function call in there and it'll work, so, sorry for spam!