From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 27 15:43:06 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A3FD116A41A for ; Thu, 27 Dec 2007 15:43:06 +0000 (UTC) (envelope-from oceanare@pacific.net.sg) Received: from smtpgate1.pacific.net.sg (smtpgate1.pacific.net.sg [203.120.90.31]) by mx1.freebsd.org (Postfix) with SMTP id CBF5F13C458 for ; Thu, 27 Dec 2007 15:43:05 +0000 (UTC) (envelope-from oceanare@pacific.net.sg) Received: (qmail 4282 invoked from network); 27 Dec 2007 15:43:03 -0000 Received: from adsl117.dyn229.pacific.net.sg (HELO P2120.somewherefaraway.com) (oceanare@210.24.229.117) by smtpgate1.pacific.net.sg with ESMTPA; 27 Dec 2007 15:42:45 -0000 Message-ID: <4773C7E5.3090302@pacific.net.sg> Date: Thu, 27 Dec 2007 23:42:29 +0800 From: Erich Dollansky User-Agent: Thunderbird 2.0.0.6 (X11/20070826) MIME-Version: 1.0 To: "Heiko Wundram (Beenic)" References: <200712271621.12167.wundram@beenic.net> In-Reply-To: <200712271621.12167.wundram@beenic.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: OT: C++ Template Functions X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Dec 2007 15:43:06 -0000 Hi, Heiko Wundram (Beenic) wrote: > > The problem is most probably related to the fact that the group of member > functions is only discriminated by return type (i.e., the template parameter > defines the return type), not by parameter (which could be inferred). if nothing got changed over the last years, it is not possible to do this by definition. When I needed this the last time, I used a enum as an additonal parameter to achieve this. I know, it is not perfect, but it leads to what I intended. It should work here too. I know, it is not the prefect solution. Erich