Skip to content
Snippets Groups Projects
Commit 113e31ff authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

ENH: C++ style cast

parent e42f24cb
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ public:
}
inline TOutput operator()( const TInput & A ) const
{
return (TOutput)( A.real()*A.real() + A.imag()*A.imag() );
return static_cast<TOutput>( A.real()*A.real() + A.imag()*A.imag() );
}
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment