RE: C++ pushback

From: Jiri Kosina
Date: Thu Apr 27 2006 - 03:58:49 EST


On Wed, 26 Apr 2006, Xavier Bestel wrote:

> > C++ has how many additional reserved words? I believe the list is
> > delete, friend, private, protected, public, template, throw, try, and
> > catch.
> You forgot namespace, mutable, new, class, const_cast, dynamic_cast,
> static_cast, reinterpret_cast, explicit, true, false, operator, typeid,
> typename and virtual. Maybe I forgot some (interface ?). Probably some
> new ones will appear.

Please also don't forget that C is not a proper subset of C++ (i.e. the
kernel might not be compilable by C++ compiler at all), so just renaming
the variables which have names clashing with C++ reserved words might not
be enough.

--
JiKos.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/