Parcourir la source

Fix compilation for g++ 4.5.2

It didn't find the static members while linking.
Michal 'vorner' Vaner il y a 14 ans
Parent
commit
6bc6c57d57
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  1. 7 0
      src/lib/acl/ip_check.h

+ 7 - 0
src/lib/acl/ip_check.h

@@ -341,6 +341,13 @@ private:
     int     family_;              ///< Address family
 };
 
+// Some compilers seem to need this to be explicitly defined outside the class
+template <typename Context>
+const size_t IPCheck<Context>::IPV6_SIZE;
+
+template <typename Context>
+const size_t IPCheck<Context>::IPV4_SIZE;
+
 } // namespace acl
 } // namespace isc