Skip to content

Commit c251e34

Browse files
committedSep 8, 2018
Fixed problem where operator=(PolymorphicWrapper& other) would actually
not copy
1 parent 760b8ed commit c251e34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎include/thero/polymorphicwrapper.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class PolymorphicWrapper
4949

5050
PolymorphicWrapper& operator=(PolymorphicWrapper& other)
5151
{
52-
return static_cast<const PolymorphicWrapper&>(other);
52+
return *this = static_cast<const PolymorphicWrapper&>(other);
5353
}
5454

5555
PolymorphicWrapper& operator=(PolymorphicWrapper&& other)

0 commit comments

Comments
 (0)
Please sign in to comment.