Skip to content

"dynamic" default value? #5509

Answered by elenakrittik
elenakrittik asked this question in Q&A
Discussion options

You must be logged in to vote

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!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@elenakrittik
Comment options

Answer selected by elenakrittik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants