OSDN Git Service

[dennco] alpha 2.0. wrap up
[dennco/dennco.git] / Source / layer1 / TKReceptor.h
index 5efb02c..fc2432b 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef __INCLUDE_TKRECEPTOR__
 #define __INCLUDE_TKRECEPTOR__
 
-#include "math.h"
+#include <limits>
 
 class TKCell;
 class TKAxonTerminal;
@@ -28,7 +28,7 @@ class TKAxonTerminal;
 class TKReceptor
 {
 public:
-    TKReceptor(TKCell *theOwner) : mOwner(theOwner), mTerminal(0), mValue(NAN) {}
+    TKReceptor(TKCell *theOwner) : mOwner(theOwner), mTerminal(0), mValue(std::numeric_limits<float>::quiet_NaN()) {}
     virtual ~TKReceptor() {}
 
     void        setTarget(TKAxonTerminal *theTerminal);