From 324774848f5b70f341ad513760d94ebdada446ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Thu, 14 Dec 2017 18:53:03 +0100 Subject: [PATCH] Sets - Missing returns in assignment operators --- include/ebcl/inline/Sets.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/ebcl/inline/Sets.hh b/include/ebcl/inline/Sets.hh index db52869..30607bf 100644 --- a/include/ebcl/inline/Sets.hh +++ b/include/ebcl/inline/Sets.hh @@ -523,6 +523,7 @@ T_Set< Type >& T_Set< Type >::operator =( handler_( T_SetHelper::DESTROY , &storage_ , nullptr , nullptr ); handler_ = other.handler_; handler_( T_SetHelper::INIT_COPY , nullptr , &other.storage_ , &storage_ ); + return *this; } @@ -543,6 +544,7 @@ T_Set< Type >& T_Set< Type >::operator =( handler_( T_SetHelper::DESTROY , &storage_ , nullptr , nullptr ); handler_ = other.handler_; handler_( T_SetHelper::INIT_MOVE , &other.storage_ , nullptr , &storage_ ); + return *this; } /*----------------------------------------------------------------------------*/