Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 82163 invoked by uid 500); 28 May 2001 18:09:49 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 82132 invoked from network); 28 May 2001 18:09:48 -0000 Message-ID: <3B12941B.5010604@xbc.nu> Date: Mon, 28 May 2001 20:08:27 +0200 From: Branko =?ISO-8859-2?Q?=C8ibej?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9) Gecko/20010505 X-Accept-Language: sl, en-gb, en MIME-Version: 1.0 To: Greg Stein CC: Christian Gross , "William A. Rowe, Jr." , dev@apr.apache.org Subject: Re: [PATCH] Type conversion needed for C++ References: <09d901c0e619$3b8cfbc0$94c0b0d0@roweclan.net> <20010527001233.N5402@lyra.org> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Greg Stein wrote: >Adding the cast just doesn't seem right. We implicitly cast void* to other >things all the time. Why does *this* one break things? I just don't buy the >need to do the cast. > >Really... void* should be automatically castable to anything. > In C, yes. In C++, implicit casting from void* is not allowed. you need a static_cast (or dynamic_cast, depending on context). -- Brane �ibej home: http://www.xbc.nu/brane/ work: http://www.hermes-softlab.com/ ACM: http://www.acm.org/