From 572ade736ab344a62afa7da214cd9407fe53a281 Mon Sep 17 00:00:00 2001 From: Moritz Pflanzer Date: Fri, 21 Jul 2017 17:36:33 +0100 Subject: COMPMID-415: Move ActivationLayer to new validation Change-Id: I38ce20d95640f9c1baf699a095c35e592ad4339f Reviewed-on: http://mpd-gerrit.cambridge.arm.com/81115 Reviewed-by: Anthony Barbier Tested-by: Kaizen --- support/ToolchainSupport.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'support') diff --git a/support/ToolchainSupport.h b/support/ToolchainSupport.h index 1a909d56db..c73f2486e1 100644 --- a/support/ToolchainSupport.h +++ b/support/ToolchainSupport.h @@ -51,7 +51,7 @@ namespace cpp11 * @return String representation of @p value. */ template ::type>::value, int>::type = 0> -std::string to_string(T && value) +inline std::string to_string(T && value) { std::stringstream stream; stream << std::forward(value); @@ -165,7 +165,7 @@ inline T copysign(T x, T y) * @return String representation of @p value. */ template -std::string to_string(T &&value) +inline std::string to_string(T &&value) { return ::std::to_string(std::forward(value)); } @@ -261,6 +261,13 @@ inline T copysign(T x, T y) return std::copysign(x, y); } #endif /* __ANDROID__ */ + +inline std::string to_string(bool value) +{ + std::stringstream str; + str << std::boolalpha << value; + return str.str(); +} } // namespace cpp11 namespace cpp14 -- cgit v1.2.1