From: Eduardo DAVILA Date: Thu, 22 Dec 2016 14:46:41 +0000 (+0100) Subject: #3045 BBTK Bug New Normal - Fedora 24 vtkMessageManager << conflict gcc6 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=bbtk.git;a=commitdiff_plain;h=b86f1fefc9fb173793a1b6d91cceefc28f048faf #3045 BBTK Bug New Normal - Fedora 24 vtkMessageManager << conflict gcc6 --- diff --git a/kernel/src/bbtkInterpreter.cxx b/kernel/src/bbtkInterpreter.cxx index e57717e..a31fe0f 100644 --- a/kernel/src/bbtkInterpreter.cxx +++ b/kernel/src/bbtkInterpreter.cxx @@ -1577,7 +1577,11 @@ void Interpreter::commandHelp(const std::vector& words) CommandDictType::iterator c; c = mCommandDict.find(s); if ( c == mCommandDict.end() ) { - bbtkError(s<<" : Unknown command"); + +//EED 2016-12-22 +// bbtkError(s<<" : Unknown command"); + std::string tmpSS=s+" : Unknown command"; + bbtkError(tmpSS); } // std::cout << " " << s << " : "<< std::endl; // CommandParamDictType::iterator i; diff --git a/kernel/src/bbtkMessageManager.h b/kernel/src/bbtkMessageManager.h index 325067a..51d7da6 100644 --- a/kernel/src/bbtkMessageManager.h +++ b/kernel/src/bbtkMessageManager.h @@ -360,7 +360,7 @@ do \ { \ std::ostringstream s; \ - s << "MESSAGE"; \ + s << MESSAGE; \ std::ostringstream f; \ f << __FILE__ << " (l."<<__LINE__<<")"; \ bbtk::Exception e( BBTK_GET_CURRENT_OBJECT_NAME, \