Topic: Formal proposal: forward declaration of enumerations


Author: Alberto Ganesh Barbati <AlbertoBarbati@libero.it>
Date: Wed, 26 Dec 2007 15:48:31 CST
Raw View
HI Everybody,

after some positive feedback on the subject, I have prepared a formal
proposal to add the possibility to forward declare (aka declare but not
define) an enumeration when the underlying type is specified. This is
obtained by extending the syntax already introduced by paper N2347
(Strongly typed enums). You can find the proposal here:

http://barbati.net/forward_decl_enum.pdf

Please notice that this proposal requires reverting a minor change
introduced by N2347 to its previous C++03 wording. This means that if
N2347 is included as-is in the next standard, forward declarations would
be more difficult to introduce later. For this reason I hope my proposal
could be considered for C++0X rather than delayed to a subsequent
revision or technical report.

Any feedback is appreciated,

Ganesh

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]