Re:TOML for Modern C++
by jdashg on Friday February 28, 2020 @12:30PM
(#22444455)
It's tricky but I think visit is being passed a generic (templated) lambda, which is statically instantiated for each type that a node might be. (Once for int, once for string, etc) Since the type is static per template instantiation, constexpr works here.
[ Parent
| on HN ]
Thank you for the explanation!