r/cpp_questions • u/SoerenNissen • 22h ago
OPEN Can you recommend a good source for learning constexpr/consteval patterns?
The specific thing I'm thinking of right now is a function that looks like:
auto func(auto... args)
{
for each arg {
if arg is type T {
do a thing with T
}
else if arg is type U {
do a thing with U
}
else {
compile error
}
}
}but I'm not just looking to solve just this specific issue, I'd like to learn a substantial amount of this skillset.