[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: "new" as function parameter doesn't work with C++-compilers

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-06-11 22:41:34 CEST

Greg Stein wrote:

>Second, we wrap all of our headers with:
>
>#ifdef __cplusplus
>extern "C" {
>#endif /* __cplusplus */
>
>which I would hope avoid problems with identifiers like 'new'. Not that I
>support doing that when it is so easy to change, but it should prevent
>problems like you're seeing.
>
Nope, "new" is a keyword in C++; the extern declaration doesn't affect it.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 11 22:42:30 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.