From: Agnieszka Lesinska <aga@fh-konstanz.de>
To: pgsql-interfaces@postgresql.org
Subject: HELP:[pq++]:constructor `PgDatabase::PgDatabase()' is protected
Date: Fri, 16 Jun 2000 12:34:49 +0200 (MET DST)
Message-ID: <200006161034.MAA08053@suntana.fh-konstanz.de> (raw)
Hello,
I'm getting the following problem:
In file included from CDatenbankSQL.cpp:8:
CDatenbankSQL.h:20: warning: ANSI C++ forbids
initialization of member `data'
/usr/local/pgsql/include/libpq++.H: In method
`CDatenbankSQL::CDatenbankSQL()':
/usr/local/pgsql/include/libpq++.H:74: constructor
`PgDatabase::PgDatabase()' is protected
CDatenbankSQL.cpp:11: within this context
CDatenbankSQL.cpp:11: in base initialization for class
`PgDatabase'
The class instantiates a public member 'PgDatabase
data("soft4")'.
The constructor looks like this:
CDatenbankSQL::CDatenbankSQL(void)
{
iError = 0;
sprintf(dbName, "soft4");
iRowPos = 0;
iFieldPos = 0;
iConnected = 0;
}
what's wrong there ?
thanks in advance.
cheers,
Aga
-----------------------------------------------------------------
This mail was sent through IMP http://webmail.fh-konstanz.de/imp/
(http://web.horde.org/imp/)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: aga@fh-konstanz.de
Subject: Re: HELP:[pq++]:constructor `PgDatabase::PgDatabase()' is protected
In-Reply-To: <200006161034.MAA08053@suntana.fh-konstanz.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox