From 11ecea3c6d11cc0f9a3d3aef87692eec897b495c Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Thu, 4 Apr 2019 20:04:56 +0100 Subject: [PATCH] const-correctness fix --- lib/Functional/Function.cpp | 2 +- lib/Functional/Function.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Functional/Function.cpp b/lib/Functional/Function.cpp index 6b31feb..18e286f 100644 --- a/lib/Functional/Function.cpp +++ b/lib/Functional/Function.cpp @@ -180,7 +180,7 @@ DoubleFunction DoubleFunction::bind(const Index argIndex, } // sample ////////////////////////////////////////////////////////////////////// -DVec DoubleFunction::sample(const DMat &x) +DVec DoubleFunction::sample(const DMat &x) const { if (x.cols() != getNArg()) { diff --git a/lib/Functional/Function.hpp b/lib/Functional/Function.hpp index 859c705..82bde35 100644 --- a/lib/Functional/Function.hpp +++ b/lib/Functional/Function.hpp @@ -57,7 +57,7 @@ public: DoubleFunction bind(const Index argIndex, const double val) const; DoubleFunction bind(const Index argIndex, const DVec &x) const; // sample - DVec sample(const DMat &x); + DVec sample(const DMat &x) const; // arithmetic operators DoubleFunction operator-(void) const; DoubleFunction & operator+=(const DoubleFunction &f);