From c8794eced33ef9cd82bb9b76a70d09a3e13e9e65 Mon Sep 17 00:00:00 2001
From: Federico Montesino Pouzols <federico.montesino-pouzols@stfc.ac.uk>
Date: Sat, 29 Aug 2015 14:07:39 +0100
Subject: [PATCH] fix clang warnings, re #13349

---
 Code/Mantid/Framework/CurveFitting/test/FitTestHelpers.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Code/Mantid/Framework/CurveFitting/test/FitTestHelpers.h b/Code/Mantid/Framework/CurveFitting/test/FitTestHelpers.h
index e0472d97b39..aeb6943a509 100644
--- a/Code/Mantid/Framework/CurveFitting/test/FitTestHelpers.h
+++ b/Code/Mantid/Framework/CurveFitting/test/FitTestHelpers.h
@@ -47,7 +47,8 @@ generateCurveDataForFit(CurveBenchmarks ctype) {
     return generateSmoothCurveWorkspace();
   else
     throw std::invalid_argument(
-        "Unknown curve type when trying to generate curve data: " + ctype);
+        "Unknown curve type when trying to generate curve data: " +
+        boost::lexical_cast<std::string>(ctype));
 }
 
 /// Produces a string description of a function with parameters and values, as
@@ -61,7 +62,7 @@ static std::string generateFunctionDescrForFit(CurveBenchmarks ctype) {
   else
     throw std::invalid_argument("Unknown curve type when trying to generate a "
                                 "function description string: " +
-                                ctype);
+                                boost::lexical_cast<std::string>(ctype));
 }
 
 // Equivalent python script. Create data with a peak and a bit of noise:
-- 
GitLab