[Mesa-dev] [PATCH 08/14] glsl: Add copy-constructor for ast_struct_specifier.

Ian Romanick idr at freedesktop.org
Wed Jul 3 18:35:56 PDT 2013


On 07/03/2013 03:36 PM, Matt Turner wrote:
> On Wed, Jul 3, 2013 at 3:13 PM, Chad Versace
> <chad.versace at linux.intel.com> wrote:
>> However, I don't know how you're using this in future patches, so it's
>> your call.
>
> I actually am making a copy of an ast_struct_specifier from a pointer
> to an ast_struct_specifier. (in 14/14)
>
> new(ctx) ast_struct_specifier(*struct_type->structure) feels dirty.

Meh.  That's how C++ rolls.  If we're going to use a hammer, we should 
the correct end of it to bound in the nails.

> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev



More information about the mesa-dev mailing list