C++ embedding

From: Stefano Novello <stefano.novello_at_parc-technologies.com>
Date: Mon 12 May 2003 11:45:19 AM GMT
Message-ID: <3E899FAFBF56D611B6A500508B9A9DA206E263@LON-SRV2>
> /usr/local/eclipse/include/i386_linux/eclipse_cc.h:1920: warning: cannot

> pass

> objects of non-POD type `const class EC_word' through `...'

The varargs in older versions of gcc used to provide a way to cheat the
stricter 'const' type-checking. They have now fixed this bug, and 'const'
types cannot be passed in. Only Plain Old Data (POD) i.e classes undecorated
with things like const, can be passed into varargs today. It's a pity we
based our C++ interface on a bug, but given the half-baked C++
standardisation I don't feel too guilty.

The fix is proably to build an array of const EC_Word and stop using
varargs..

Stefano Novello
Parc Technologies Limited
Office: +44 (0)20 7261 4068
Mobile: +44 (0)79 8985 4422<?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" />

This e-mail message is for the sole use of the intended recipient (s) -its
contents are the property of PARC Technologies Limited (or its licensors)
and are confidential. Please do not copy, review, use, disclose or
distribute the e-mail or its contents (or allow anyone else to do so)
without our prior permission. PARC Technologies Limited does not guarantee
that this e-mail has not been intercepted and amended nor that it is
virus-free. You should carry out your own virus checks before opening any
attachment.  Any opinions expressed in this e-mail message are those of the
author and not necessarily PARC Technologies Limited.

 

 
Received on Mon May 12 12:42:48 2003

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:08:21 PM GMT GMT