From b7b70c940664a20006933da32b6a874bd6d21922 Mon Sep 17 00:00:00 2001 From: Matt Peddie Date: Wed, 5 Jun 2024 14:57:53 +1000 Subject: [PATCH] Ostream support for Measurement --- include/albatross/src/covariance_functions/measurement.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/albatross/src/covariance_functions/measurement.hpp b/include/albatross/src/covariance_functions/measurement.hpp index 3b49650f..795f984d 100644 --- a/include/albatross/src/covariance_functions/measurement.hpp +++ b/include/albatross/src/covariance_functions/measurement.hpp @@ -29,6 +29,11 @@ template struct Measurement { X value; }; +template +std::ostream &operator<<(std::ostream &os, const Measurement &m) { + return os << "Meas[" << m.value << "]"; +} + // A simple helper function which aids the compiler with type deduction. template Measurement as_measurement(const FeatureType &f) {