From 3dd30f7ec568852ffd95932b486d0a09a2021d71 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Fri, 4 Aug 2017 13:47:39 +0300 Subject: Add debug output operator<< for ParamIfsResult Change-Id: I82cfed0d86c42feabb646301b399695ed71308ed --- sc/source/core/inc/interpre.hxx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sc/source/core/inc/interpre.hxx b/sc/source/core/inc/interpre.hxx index 7fa41cb9a561..113cf6aa4ec6 100644 --- a/sc/source/core/inc/interpre.hxx +++ b/sc/source/core/inc/interpre.hxx @@ -40,6 +40,7 @@ #include #include #include +#include class ScDocument; class SbxVariable; @@ -72,6 +73,20 @@ struct ParamIfsResult double mfMax = std::numeric_limits::lowest(); }; +template +inline std::basic_ostream & operator <<(std::basic_ostream & stream, const ParamIfsResult& rRes) +{ + stream << "{" << + "sum=" << rRes.mfSum << "," << + "mem=" << rRes.mfMem << "," << + "count=" << rRes.mfCount << "," << + "min=" << rRes.mfMin << "," << + "max=" << rRes.mfMax << "," << + "}"; + + return stream; +} + } namespace svl { -- cgit v1.2.3