From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 116788 invoked by alias); 29 May 2015 11:42:47 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 116778 invoked by uid 89); 29 May 2015 11:42:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_05,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mail.bfw-online.de Received: from mail.bfw-online.de (HELO mail.bfw-online.de) (62.245.186.164) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 29 May 2015 11:42:46 +0000 Received: from weller by mail.bfw-online.de with local (Exim 4.85) (envelope-from ) id 1YyIgV-00046S-A2; Fri, 29 May 2015 13:42:43 +0200 Date: Fri, 29 May 2015 11:42:00 -0000 From: Weller To: Jan Kratochvil Cc: gdb@sourceware.org Subject: Re: find_overload_match for constructor Message-ID: <20150529114243.GA13783@bfw-online.de> References: <20150508092906.GA23005@bfw-online.de> <20150529112931.GA1850@bfw-online.de> <20150529113524.GA15937@host1.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150529113524.GA15937@host1.jankratochvil.net> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-05/txt/msg00038.txt.bz2 Okay thanks for the quick answer. I might try that hack and see if it works good enough for my problem. If not I'll have to include a few extra functions in the library to allow non-constructor calls for the class. Lennart On Fri, May 29, 2015 at 01:35:24PM +0200, Jan Kratochvil wrote: > On Fri, 29 May 2015 13:29:31 +0200, Weller wrote: > > Anyone got any ideas how this could be achieved? > > Officially it is not supported. > > I remember I achieved that one by calling malloc() and passing the address as > the first parameter to a constructor (its 'this') but that is a hack. > > It should be supported by the 'compile code' integration with GCC but its C++ > part is not yet ready. > > > Jan