[patch] regex_traits implementation

Paolo Carlini paolo.carlini@oracle.com
Tue Jul 2 19:31:00 GMT 2013



Hi,

>Second, making it `const` enables more potential compiler
>optimizations.

Stylistically, we already discussed this in the past and the outcome was that normally we don't use const by value anywhere. But personally I don't have a strong opinion and certainly I would not object if it makes a difference from the optimization point of view: as far as I know it does *not*, like it does not declaring const a local, do you have some up to date evidence that it does?

Paolo



More information about the Libstdc++ mailing list