You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In WithinUlpsMatcher::describe the code calls std::to_string(m_ulps). I'm not even sure if that's actually a bug/unintended, but it feels out of place when all the other values around it call to ::Catch::Detail::stringify.
Steps to reproduce
I only noticed this because std::to_string is not available on android ( 🙄 ) so it popped up as an error. I just replaced with ::Catch::Detail::stringify locally, but if this is a WONTFIX then I won't blame you!
Extra information
Catch version: v2.2.2
Operating System: Android 26.0.1
Compiler+version: Android 26 compiler
The text was updated successfully, but these errors were encountered:
Yeah, that is a bug/oversight, probably from prototyping the code outside of Catch at first. Actually nevermind, it was intentional. While the expected usage is such that the target ulps should be less than the threshold for hex-stringification, I wanted to make sure that the string looks the right way even if someone used a high tolerance.
edit:
Is that while using libc++ as the stl? We had a different issue with Android where the problem was that the user was not providing -stl=libc++, so it was using the old and obsolete C++ stdlib.
I'm not using any special compile flags so it'll be whatever is default for that Android SDK, I'm not really familiar with the setup. Android is very brittle and error-prone though, so I'm happy to leave this as a local change I have for compatibility rather than try and fix it another way on my end and break something else.
Android apparently does not support `std::to_string`, so we add a
small polyfill over it. Right now only the ULP matcher uses it,
but we have had plans to use it in `StringMaker<int>` and friends,
as it performs a lot better than `std::stringstream` based
stringification on MSVC.
See #1280 for more details
Description
In
WithinUlpsMatcher::describe
the code callsstd::to_string(m_ulps)
. I'm not even sure if that's actually a bug/unintended, but it feels out of place when all the other values around it call to::Catch::Detail::stringify
.Steps to reproduce
I only noticed this because
std::to_string
is not available on android ( 🙄 ) so it popped up as an error. I just replaced with::Catch::Detail::stringify
locally, but if this is a WONTFIX then I won't blame you!Extra information
The text was updated successfully, but these errors were encountered: