You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Renji Panicker <re...@aliyance.com> on 2002/05/08 05:25:05 UTC

RE:- Call for Vote: which one to be the Xerces-C++ public supported W3C DOM interface

How #define'ing the usage of namespaces, something like the way ANTLR
(www.antlr.org) does it?

>From the config.hpp file of ANTLR:
/////////////////////////////////////////////////////////////
/*
	Some compilers do not accept namespaces std:: for example.
	In this case, just define #define ANTLR_USE_NAMESPACE(_x_).

	See SunWorkShop 4.2 for example.
 */
#define ANTLR_USE_NAMESPACE(_x_) _x_::
#define ANTLR_USING_NAMESPACE(_x_) using namespace _x_;
#define ANTLR_BEGIN_NAMESPACE(_x_) namespace _x_ {
#define ANTLR_END_NAMESPACE }
#define ANTLR_C_USING(_x_)
/////////////////////////////////////////////////////////////

-/renji

-----Original Message-----
From: Martin Kalen [mailto:martin.kalen@todaysystems.com.au]
Sent: Wednesday, May 08, 2002 7:36 AM
To: xerces-c-dev@xml.apache.org
Subject: Re: Call for Vote: which one to be the Xerces-C++ public
supported W3C DOM interface


----- Original Message -----
From: "Dean Roddey" <dr...@charmedquark.com>
Subject: Re: Call for Vote: which one to be the Xerces-C++ public
supported W3C DOM interface


> But I can't imagine any decent C++ compiler not
> dealing with namespaces by now, right?

Right you are, but Xerces-C++ still ports to a few deprecated
operating systems with non-decent C++ compilers. I guess it's a
toss-up wether cross-platform is more important than being able to use
namespaces and such. (+1 for cross-platform from us at the moment.)

Regards,
 Martin


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org