diff --git a/include/albatross/src/covariance_functions/measurement.hpp b/include/albatross/src/covariance_functions/measurement.hpp index 732093d4..3b49650f 100644 --- a/include/albatross/src/covariance_functions/measurement.hpp +++ b/include/albatross/src/covariance_functions/measurement.hpp @@ -110,6 +110,16 @@ MeasurementOnly measurement_only(const SubCovariance &cov) { return MeasurementOnly(cov); } +template T without_measurement(Measurement &&m) { + return m.value; +} +template const T &without_measurement(const Measurement &m) { + return m.value; +} + +template T without_measurement(T &&t) { return t; } +template const T &without_measurement(const T &t) { return t; } + } // namespace albatross #endif /* INCLUDE_ALBATROSS_SRC_COVARIANCE_FUNCTIONS_MEASUREMENT_HPP_ */