Topic: Proposal: Macro Dictionaries


Author: Howard Hinnant <hinnant@antispam.twcny.rr.com>
Date: Mon, 14 May 2001 16:33:29 GMT
Raw View
With the introduction of templates (and the delayed support of export),
headers have become the repository of a great deal of (templated) code.
This makes it increasingly difficult for (non std::) library writers to
protect their code from client generated macros.

I have a proposal at:

http://home.twcny.rr.com/hinnant/cpp_extensions/Preprocessor_Dictionary.
html

which would allow library vendors to protect themselves from client
defined macros.  This proposal is backward compatible with existing
code, and is optional.  If you don't want to use the facility, you
don't have to, and it cost you nothing.

Constructive comments, both pro and con are appreciated.

--
Howard Hinnant

---
[ 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.research.att.com/~austern/csc/faq.html                ]