Mike,

Interesting! Thanks!

Randy Kramer

Mike Nordell wrote:
> Both. It does affect semantics of the expression. For the expression
>   x = x * y
> 
> the non-optimizing compiler generates something like
>   tmp = x.operator*(y);
>   x = tmp;
> 
> while
>   x *= y
> becomes
>   x.operator*=(y);
> 
> For POD (Plain Old Data) types any reasonable optimizer generates the same
> code, but for an unoptimized build or when using non-trivial objects it can
> make quite a difference.
> 
> /Mike

Reply via email to