Hacker News new | ask | show | jobs
by kccqzy 2437 days ago
This is a intermediate-level technique that's quite commonly used. Take a look at <type_traits> to find out what you can do with it! Specifically you can use std::enable_if in a return type or template parameter to conditionally enable an overload.