]> git.stg.codes - stg.git/commitdiff
Define ConstSensor::ToString only in debug build
authorMaxim Mamontov <faust.madf@gmail.com>
Sat, 3 Sep 2011 06:36:08 +0000 (09:36 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Sat, 3 Sep 2011 06:36:08 +0000 (09:36 +0300)
projects/stargazer/plugins/other/smux/sensors.h

index 7c11751eca9551e5ee75f93910fcca8c773daf40..db3f26f386c050fc68fc90297659f37e7fd29c43 100644 (file)
@@ -280,11 +280,13 @@ class ConstSensor : public Sensor {
         T value;
 };
 
+#ifdef DEBUG
 template <>
 inline
 std::string ConstSensor<std::string>::ToString() const
 {
 return value;
 }
+#endif
 
 #endif