folly: fix clang's -Wundefined-var-template
[folly.git] / folly / Fingerprint.h
index f1980ae215aa2b35afe248ad0e60b762fcad7b66..c7a20fb7536c9bdbac27f7382c957496988cd324 100644 (file)
 namespace folly {
 
 namespace detail {
+
 template <int BITS>
 struct FingerprintTable {
-  static const uint64_t poly[1 + (BITS-1)/64];
-  static const uint64_t table[8][256][1 + (BITS-1)/64];
+  static const uint64_t poly[1 + (BITS - 1) / 64];
+  static const uint64_t table[8][256][1 + (BITS - 1) / 64];
 };
-}  // namespace detail
+
+template <int BITS>
+const uint64_t FingerprintTable<BITS>::poly[1 + (BITS - 1) / 64] = {};
+
+template <int BITS>
+const uint64_t FingerprintTable<BITS>::table[8][256][1 + (BITS - 1) / 64] = {};
+
+} // namespace detail
 
 /**
  * Compute the Rabin fingerprint.