
Richard Webb wrote:
If you're looking at silencing warnings from Format, is there any chance you could look at http://svn.boost.org/trac/boost/ticket/1510 ? It can produce some pretty substantial warnings as well.
Hopefully now done.
On another note (and i apologize for the noise in advance if i'm making things up here) - when i looked at the call stack for the warnings, i noticed
void raise_error(const char* function, const char* message, const T& val) { if(function == 0) function = "Unknown function"; ... msg += (boost::format(function) % typeid(T).name()).str();
in math\error_handling.hpp Does that need to be something like function = "Unknown function %1%"; For the format call to work?
Quite right: there were a couple of other instances where that was wrong as well: now fixed in SVN. Fortunately none of our code ever calls that function with a NULL-pointer, but it doesn't harm to have a working fallback in that case! Thanks, good spot, John.