00001 #include <sstream> 00002 00003 #include "calc_error.hpp" 00004 00005 std::string function_error::msg(std::string const& name, std::size_t expected, std::size_t actual) 00006 { 00007 std::ostringstream stream; 00008 stream << "wrong number of arguments in call to " + name + "(), expected " << expected << ", got " << actual; 00009 return stream.str(); 00010 }