From db2cb996ac9af26c3524955dd269d97e21c60426 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 10 Oct 2023 19:19:45 +0200 Subject: [PATCH] overload << operator for debugging --- cpp/includes/Example.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpp/includes/Example.hpp b/cpp/includes/Example.hpp index 04917eb..707f494 100644 --- a/cpp/includes/Example.hpp +++ b/cpp/includes/Example.hpp @@ -9,6 +9,8 @@ struct Example { Example(const Example &); // copy constructor const Example &operator=(const Example &); // copy assignement + + friend std::ostream &operator<<(std::ostream &out, const Example &data); }; #endif