[patch] const_cast to be replaced by str_unconst

Pavel Tsekov ptsekov at gmx.net
Tue Apr 12 11:38:18 UTC 2005


Hello,

On Tue, 12 Apr 2005, Roland Illig wrote:

> I like this version much more than the const_cast macro I introduced
> some months ago. Compare these:

I mean no offense,  but please save us all the "I like this", "I
like that". It's obvious that you check in what you like.

> For those of you that are concerned about the performance loss of an
> extra function call: It is much more important for the code to be
> readable and checkable by the compiler than to be 1 millisecond faster
> at all.

You can inline it.



More information about the mc-devel mailing list