calc_error.cpp

Go to the documentation of this file.
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 }

Generated on Sun Nov 30 10:05:26 2008 for Calculator by  doxygen 1.5.3