Skip to content

Commit a28df0f

Browse files
Merge pull request #675 from chhtz/master
Use feature test macro to check availability of `std::from_chars`
2 parents d7457d2 + 751b5be commit a28df0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/behaviortree_cpp/utils/safe_any.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ nonstd::expected<T, std::string> Any::stringToNumber() const
348348
static_assert(std::is_arithmetic_v<T> && !std::is_same_v<T, bool>, "Expecting a numeric type");
349349

350350
const auto str = linb::any_cast<SafeAny::SimpleString>(_any);
351-
#if __has_include(<GL/gl.h>)
351+
#if __cpp_lib_to_chars >= 201611L
352352
T out;
353353
auto [ptr, err] = std::from_chars(str.data(), str.data() + str.size(), out);
354354
if(err == std::errc())

0 commit comments

Comments
 (0)