March 01, 2003
C++ Expression TemplatesListing 2: Using the Interpreter pattern for evaluating (x+2)*3
void someFunction(double x)
{
Product expr(new Sum(new Variable(x),
|
|
||||||||||||||||||||||||||||
|
|