Which way you prefer?
How To Detect Function Overloads in C++17/20, std::from_chars Example
by Bartlomiej Filipek
From the article:
The problem: a library function offers several overloads, but depending on the implementation/compiler, some of the overloads are not available. How to check the existence of an overload? And how to provide a safe fallback?In this article, I’ll show you a background “theory” and one case - std::from_chars that exposes full support for numbers or only integer support (in GCC, Clang)...
Add a Comment
Comments are closed.