[Conv] MaxString specialization for __int128
authorMisha Shneerson <mshneer@fb.com>
Sun, 28 Oct 2012 07:07:38 +0000 (00:07 -0700)
committerJordan DeLong <jdelong@fb.com>
Sun, 16 Dec 2012 22:41:56 +0000 (14:41 -0800)
Summary: Just that.

Test Plan: .

Reviewed By: igorzi@fb.com

FB internal diff: D613291

folly/Conv.cpp

index c65ba04a42a57d2e5b08e9df41497d0a354a5ffa..27067fcc501f0f5f88a6fece9111581746959602 100644 (file)
@@ -42,6 +42,8 @@ static_assert(sizeof(unsigned long) >= 4,
               " please update.");
 template <> const char *const MaxString<unsigned long long>::value =
   "18446744073709551615";
+template <> const char *const MaxString<unsigned __int128>::value =
+  "340282366920938463463374607431768211455";
 static_assert(sizeof(unsigned long long) >= 8,
               "Wrong value for MaxString<unsigned long long>::value"
               ", please update.");