From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 26 20:09:48 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 516DA16A4CE for ; Mon, 26 Jul 2004 20:09:48 +0000 (GMT) Received: from tensor.xs4all.nl (tensor.xs4all.nl [194.109.160.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB9EB43D39 for ; Mon, 26 Jul 2004 20:09:47 +0000 (GMT) (envelope-from dimitry@andric.com) Received: from kilgore.dim (kilgore.dim [192.168.0.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.xs4all.nl (Postfix) with ESMTP id E7EF72284A; Mon, 26 Jul 2004 22:09:45 +0200 (CEST) Date: Mon, 26 Jul 2004 22:09:40 +0200 From: Dimitry Andric X-Mailer: The Bat! (v2.12.03) Business X-Priority: 3 (Normal) Message-ID: <629886387.20040726220940@andric.com> To: "Ryan Sommers" In-Reply-To: <49805.208.4.77.15.1090871732.squirrel@www2.neuroflux.com> References: <49805.208.4.77.15.1090871732.squirrel@www2.neuroflux.com> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="----------97961962E89D4F9" cc: hackers@freebsd.org Subject: Re: Question for C++ Experts X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jul 2004 20:09:48 -0000 ------------97961962E89D4F9 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit On 2004-07-26 at 21:55:32 Ryan Sommers wrote: > The problem I am running into is that it seems to be illegal to call > a pure virtual function from an abstract base contructor. This is because you shouldn't call virtual functions from constructors, unless you know what you're doing. :) Try using exceptions, or two-phase initialization. And read a C++ FAQ for more info, i.e.: http://www.parashift.com/c++-faq-lite/strange-inheritance.html#faq-23.3 There's lots more in there, also explaining your other questions. But this is quite offtopic for this list... ------------97961962E89D4F9 Content-Type: application/pgp-signature -----BEGIN PGP MESSAGE----- Version: GnuPG v1.2.4 (MingW32) iD8DBQFBBWUEsF6jCi4glqMRAqZlAJ9emlYkrvEJankx+S1oeDBXZw6AGQCgkIZp 1T+UUzOZh88yydFtKBjfbYg= =FoFn -----END PGP MESSAGE----- ------------97961962E89D4F9--