[cfe-commits] [PATCH 11/15] Fix Casting
dag at cray.com
dag at cray.com
Fri Jan 11 10:02:27 PST 2013
Dmitri Gribenko <gribozavr at gmail.com> writes:
> On Thu, Jan 10, 2013 at 9:12 PM, David Greene <dag at cray.com> wrote:
>> Use const_cast<> to avoid a cast-away-const error.
>
> Maybe a helper function template would be better (for all except the
> first)? Argyrios?
Hmm...I think const_cast is useful because it's a red flag. I don't
think we should be hiding that as it can indicate a design issue.
-David
More information about the cfe-commits
mailing list