diff --git a/score/launch_manager/src/daemon/src/common/signal_safe_log.hpp b/score/launch_manager/src/daemon/src/common/signal_safe_log.hpp index 64a213fe85..6b8186c85e 100644 --- a/score/launch_manager/src/daemon/src/common/signal_safe_log.hpp +++ b/score/launch_manager/src/daemon/src/common/signal_safe_log.hpp @@ -50,6 +50,11 @@ class signal_safe_buffer } /// @brief Append the given integer to the buffer. + /// @note std::to_chars is not guaranteed async signal safe by the C++ standard. It is + /// restricted to integral types here because, unlike floating point types (e.g. + /// libstdc++'s long double overload, which allocates), integral overloads are known not + /// to allocate or throw in the implementations we support. See + /// https://github.com/eclipse-score/lifecycle/issues/385. template , bool> = true> void append(const T& value) {