DGtal-team / DGtal

Digital Geometry Tools and Algorithm Library
https://dgtal.org
GNU Lesser General Public License v3.0
370 stars 115 forks source link

Bug in BasicFunctor Composer ? #279

Closed dcoeurjo closed 12 years ago

dcoeurjo commented 12 years ago

The operator=() of Composer instances should return a *this :

template<typename TFunctor1, typename TFunctor2, typename ReturnType> inline Composer<TFunctor1, TFunctor2, ReturnType>& Composer<TFunctor1, TFunctor2, ReturnType> ::operator=(const Composer<TFunctor1, TFunctor2, ReturnType>& other) { myF1 = other.myF1; myF2 = other.myF2; }

troussil commented 12 years ago

You're right. I will correct this.

2012/2/27 David Coeurjolly < reply@reply.github.com

The operator=() of Composer instances should return a *this :

template<typename TFunctor1, typename TFunctor2, typename ReturnType> inline Composer<TFunctor1, TFunctor2, ReturnType>& Composer<TFunctor1, TFunctor2, ReturnType> ::operator=(const Composer<TFunctor1, TFunctor2, ReturnType>& other) { myF1 = other.myF1; myF2 = other.myF2; }


Reply to this email directly or view it on GitHub: https://github.com/DGtal-team/DGtal/issues/279

dcoeurjo commented 12 years ago

done in imageconcep^t pull