News for hackers. Stuff that matters.
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.
Re:TOML for Modern C++ by rpasquay on Thursday March 05, 2020 @09:53AM (#22493951)
Thank you for the explanation!
Re:TOML for Modern C++ by marzer on Friday February 28, 2020 @03:59PM (#22446316)
Yup, nailed it