From: Maxim Mamontov Date: Sat, 3 Sep 2011 06:36:08 +0000 (+0300) Subject: Define ConstSensor::ToString only in debug build X-Git-Tag: 2.408-rc1~97 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/03da774482c3c3cabfc2a92f19d737d015881f28 Define ConstSensor::ToString only in debug build --- 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