Path: csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!news.stack.nl!.POSTED!not-for-mail From: Martijn van Buul Newsgroups: comp.lang.c++ Subject: Re: Which casting conversion to use for void*? Date: Mon, 9 May 2011 08:04:48 +0000 (UTC) Organization: Eindhoven University of Technology Lines: 10 Message-ID: References: Reply-To: pino+comp_lang_c++@dohd.org (Martijn van Buul) NNTP-Posting-Host: news.stack.nl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: mud.stack.nl 1304928288 61905 2001:610:1108:5011::97 (9 May 2011 08:04:48 GMT) X-Complaints-To: abuse@stack.nl NNTP-Posting-Date: Mon, 9 May 2011 08:04:48 +0000 (UTC) User-Agent: slrn/0.9.9p1 (FreeBSD) X-Favourite-Drink: Alcoholic, yet fluid Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:4827 * Qi: > static_cast is type safe cast It's not. static_cast works for *related* types, but doesn't guarantee the cast will be safe. It's safer than reinterpret_cast, but not safe. -- Martijn van Buul - pino@dohd.org