SplinePath: MAKING USE OF std::function