Mark FingerprintPolynomial.size() constexpr
authorChristopher Dykes <cdykes@fb.com>
Tue, 15 Nov 2016 19:38:18 +0000 (11:38 -0800)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Tue, 15 Nov 2016 19:39:24 +0000 (11:39 -0800)
Summary: Because it is, and so that MSVC doesn't complain about things in the fingerprint table generator.

Reviewed By: yfeldblum

Differential Revision: D4178562

fbshipit-source-id: 8816f413bc100b42dd72f0e991aec8559b328e9b

folly/detail/FingerprintPolynomial.h

index fd927dcbd3e0cec0c7461999124b73f0185912a3..77cfcac05e2ef3b29140bb83f0c69aea6f6b71ea 100644 (file)
@@ -125,7 +125,7 @@ class FingerprintPolynomial {
     }
   }
 
-  static int size() {
+  static constexpr int size() {
     return 1 + DEG/64;
   }
  private: