Peter Eisentraut <[email protected]> writes:
> In file included from ./src/include/utils/catcache.h:25:0,
> from /tmp/cpluspluscheck.bt8VZr/test.cpp:3:
> src/include/lib/ilist.h: In function âdlist_node*
> dlist_head_node(dlist_head*)â:
> src/include/lib/ilist.h:470:39: error: invalid conversion from âvoid*â to
> âdlist_node*â [-fpermissive]
> Maybe some ifndef __cplusplus would help.
Or maybe we need to recommend use of -fpermissive? If C++ thinks
casting void * to something else is illegitimate, it's basically not
going to cope with most things we might try to inline in Postgres.
And I don't think that saying "you don't get to call these fundamental
support functions from C++" is likely to fly, so just hiding the
functions won't help much.
regards, tom lane
--
Sent via pgsql-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers