jweinst1
6/16/2017 - 2:24 AM

overload call operator C++

overload call operator C++

#include "lambda.h"

lambda::Add::Add(int arg){
    op = arg;
}

int lambda::Add::operator()(int other){
    return op + other;
}