Re: [PATCH] refactor Vector

From: Kinkie <gkinkie_at_gmail.com>
Date: Mon, 10 Feb 2014 10:20:21 +0100

> The kind of cast appears to be wrong here: Const_cast<> is normally used
> to remove const, not add it. It is not used to change the type.

It is currently a c-style cast.
Attributes is built over push_back(), so the only way to cleanly make
it const would be to copy it after it's built.
Without it,
CustomParser.cc:209:83: error: invalid conversion from 'char**' to
'const char**' [-fpermissive]

-- 
    Francesco
Received on Mon Feb 10 2014 - 09:20:30 MST

This archive was generated by hypermail 2.2.0 : Mon Feb 10 2014 - 12:00:11 MST