C++ keyword in utils/rbtree.h

Started by Peter Eisentrautover 15 years ago2 messages
#1Peter Eisentraut
peter_e@gmx.net

src/tools/pginclude/cpluspluscheck says:

./utils/rbtree.h:21: error: expected ‘,’ or ‘...’ before ‘new’

Can we rename the "new" to something like "new_whateveritis"? And what
is it? :-)

#2Robert Haas
robertmhaas@gmail.com
In reply to: Peter Eisentraut (#1)
Re: C++ keyword in utils/rbtree.h

On Tue, May 11, 2010 at 1:34 PM, Peter Eisentraut <peter_e@gmx.net> wrote:

src/tools/pginclude/cpluspluscheck says:

./utils/rbtree.h:21: error: expected ‘,’ or ‘...’ before ‘new’

Can we rename the "new" to something like "new_whateveritis"?  And what
is it? :-)

It's a new value of some kind to be logically "appended" to a list of
existing values. Details depend on the type of data the caller is
storing in the rbtree. Trivial fix committed.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company