mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-23 07:53:29 -06:00
12 lines
251 B
C++
12 lines
251 B
C++
|
// CMake feature test for floating-point std::from_chars() support
|
||
|
|
||
|
#include <charconv>
|
||
|
#include <string_view>
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
const auto s = std::string_view { "2.71828" };
|
||
|
auto e = 0.0;
|
||
|
std::from_chars(s.data(), s.data() + s.size(), e);
|
||
|
}
|