Andrew Yarmola's fix to the in-class intialization syntax in OrderList<T> dev
authorDmitriy Morozov <dmitriy@mrzv.org>
Tue, 20 Apr 2010 13:58:23 -0700
branchdev
changeset 208 36ea2751f290
parent 207 6f1ed27850c8
child 214 ee0dca73ea47
child 215 e94d521b72bb
Andrew Yarmola's fix to the in-class intialization syntax in OrderList<T>
include/utilities/orderlist.h
include/utilities/orderlist.hpp
--- a/include/utilities/orderlist.h	Tue Mar 09 15:22:57 2010 -0800
+++ b/include/utilities/orderlist.h	Tue Apr 20 13:58:23 2010 -0700
@@ -93,7 +93,7 @@
 		/// @}
 
 	private:
-		static const float density_threshold = 1.2;
+		static const float density_threshold;
 };
 
 /// Basic comparison that LessThan and GreaterThan derive from
--- a/include/utilities/orderlist.hpp	Tue Mar 09 15:22:57 2010 -0800
+++ b/include/utilities/orderlist.hpp	Tue Apr 20 13:58:23 2010 -0700
@@ -4,6 +4,10 @@
 static rlog::RLogChannel* rlOrderList = 					DEF_CHANNEL("utilities/orderlist", rlog::Log_Debug);
 #endif // LOGGING
 
+// This cannot be in the header file to conform to the C++ standard
+template<class T>
+const float OrderList<T>::density_threshold = 1.2;
+
 template<class T>
 void 
 OrderList<T>::