'Feature test for float/double variants of std::from_chars?
I'd like to write a C++17 shim that substitutes custom implementation of std::from_chars in case the float/double variants are not available (e.g. GCC < 11 has only integers). However, the feature test macro __cpp_lib_to_chars only differentiates general support of from_chars and is satisfied even when only the integer variant is implemented. How should I figure out whether the float/double variants are supported? Do I need to do it via compiled feature tests?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
