From 75cff007b4896eed49b758be0959668673ae1bf3 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 8 May 2024 10:07:57 +0300 Subject: [w10] Fixed mistakes in certain exercises --- week10/Exercise02/Array.hpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'week10/Exercise02/Array.hpp') diff --git a/week10/Exercise02/Array.hpp b/week10/Exercise02/Array.hpp index 114a1bc..6c2d95b 100644 --- a/week10/Exercise02/Array.hpp +++ b/week10/Exercise02/Array.hpp @@ -22,9 +22,13 @@ public: T& operator[](unsigned index); T& operator[](unsigned index) const; Array& operator+=(const Array& right); - friend bool operator==(const Array& left, const Array& right); - friend bool operator!=(const Array& left, const Array& right); - friend Array operator+(const Array& left, const Array& right); + + template + friend bool operator==(const Array& left, const Array& right); + template + friend bool operator!=(const Array& left, const Array& right); + template + friend Array operator+(const Array& left, const Array& right); }; template -- cgit v1.2.3