From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 27 16:37:59 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 74F6716A41B for ; Thu, 27 Dec 2007 16:37:59 +0000 (UTC) (envelope-from wundram@beenic.net) Received: from mail.beenic.net (mail.beenic.net [83.246.72.40]) by mx1.freebsd.org (Postfix) with ESMTP id 3D2F913C4CC for ; Thu, 27 Dec 2007 16:37:59 +0000 (UTC) (envelope-from wundram@beenic.net) Received: from [192.168.1.32] (a89-182-22-99.net-htp.de [89.182.22.99]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.beenic.net (Postfix) with ESMTP id 61D70A44529; Thu, 27 Dec 2007 17:30:19 +0100 (CET) From: "Heiko Wundram (Beenic)" Organization: Beenic Networks GmbH To: freebsd-hackers@freebsd.org Date: Thu, 27 Dec 2007 17:38:01 +0100 User-Agent: KMail/1.9.7 References: <200712271621.12167.wundram@beenic.net> <200712271701.38821.wundram@beenic.net> <4773CFB6.8020008@pacific.net.sg> In-Reply-To: <4773CFB6.8020008@pacific.net.sg> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200712271738.01749.wundram@beenic.net> Cc: 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 16:37:59 -0000 Am Donnerstag, 27. Dezember 2007 17:15:50 schrieb Erich Dollansky: > wasn't your question that you have a class with several member functions > which would all be identical except of the return type? No, that's perfectly clear that that won't work. My question was about a templated member function in a templated class, and instantiating the member template on an instance of the templated class inside a templated function which uses its template arguments to specialize the class and the corresponding member. Have a look at the source I sent initially, that should explain better what I'm trying to say, because I guess the problem isn't easily explained in words. -- Heiko Wundram Product & Application Development