Mark the long overload of digits_to as noexcept
authorChristopher Dykes <cdykes@fb.com>
Fri, 19 Aug 2016 20:51:26 +0000 (13:51 -0700)
committerFacebook Github Bot 7 <facebook-github-bot-7-bot@fb.com>
Fri, 19 Aug 2016 20:54:14 +0000 (13:54 -0700)
Summary: Well, the explicit instantion for it anyways. The extern template declaration for it declares it as `noexcept`, so MSVC generates an error because the explicit instantiation is not also marked as `noexcept`

Reviewed By: yfeldblum, ericniebler

Differential Revision: D3744090

fbshipit-source-id: 4e756b2761c23a436097a6131b9b2ecd59faf4f9

folly/Conv.cpp

index 0ab6dcf50470bd1108714160b4cf7a528beba6dc..1e6da78aecd14f543ecf4821863e7ed9aeb47340 100644 (file)
@@ -631,7 +631,7 @@ template Expected<unsigned int, ConversionCode> digits_to<unsigned int>(
 
 template Expected<long, ConversionCode> digits_to<long>(
     const char*,
-    const char*);
+    const char*) noexcept;
 template Expected<unsigned long, ConversionCode> digits_to<unsigned long>(
     const char*,
     const char*) noexcept;