From 03da774482c3c3cabfc2a92f19d737d015881f28 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Sat, 3 Sep 2011 09:36:08 +0300 Subject: [PATCH] Define ConstSensor::ToString only in debug build --- projects/stargazer/plugins/other/smux/sensors.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/stargazer/plugins/other/smux/sensors.h b/projects/stargazer/plugins/other/smux/sensors.h index 7c11751e..db3f26f3 100644 --- a/projects/stargazer/plugins/other/smux/sensors.h +++ b/projects/stargazer/plugins/other/smux/sensors.h @@ -280,11 +280,13 @@ class ConstSensor : public Sensor { T value; }; +#ifdef DEBUG template <> inline std::string ConstSensor::ToString() const { return value; } +#endif #endif -- 2.43.2