Use a constexpr char* under MSVC for the constexpr StringPiece test
[folly.git] / folly / FormatArg.h
index 6f25299e5217c647825452a1661386f08aa0e8ab..701654b3397453a8a59e7c924c0a6ff08ff858dc 100644 (file)
@@ -211,7 +211,7 @@ inline std::string FormatArg::errorStr(Args&&... args) const {
 }
 
 template <typename... Args>
-inline void FormatArg::error(Args&&... args) const {
+[[noreturn]] inline void FormatArg::error(Args&&... args) const {
   throw BadFormatArg(errorStr(std::forward<Args>(args)...));
 }