From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH kvm-unit-tests 2/4] Introduce a C++ wrapper for the kvm APIs Date: Wed, 24 Nov 2010 19:41:00 +0200 Message-ID: <4CED4E2C.2080602@redhat.com> References: <20101124154006.GE15111@redhat.com> <4CED344B.3030000@codemonkey.ws> <4CED3FE6.50900@redhat.com> <4CED41A0.8060003@redhat.com> <4CED4276.9090103@redhat.com> <4CED445E.30105@redhat.com> <4CED4629.2060804@redhat.com> <4CED4738.2020406@redhat.com> <4CED488D.40806@redhat.com> <4CED4A74.80706@redhat.com> <20101124173646.GJ20014@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Jes Sorensen , Anthony Liguori , Alexander Graf , Marcelo Tosatti , kvm@vger.kernel.org To: Gleb Natapov Return-path: Received: from mx1.redhat.com ([209.132.183.28]:27970 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752635Ab0KXRu3 (ORCPT ); Wed, 24 Nov 2010 12:50:29 -0500 In-Reply-To: <20101124173646.GJ20014@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 11/24/2010 07:36 PM, Gleb Natapov wrote: > > That is pure bullshit. All major browsers are written in C++, all > > major office suites, one leading free desktop, google, countless > > other projects. There is a lot more C++ code in the world than C > > code. If virtual functions didn't behave as expected, surely we'd > > hear by now. > > > Google don't use exceptions though :) They claim it is hard to integrate > with legacy code if exceptions are used. Our case BTW. It's possible, but very nasty. You add wrappers that convert error codes to exceptions and vice versa. If your goal is to eventually convert the entire code base, those wrappers eventually disappear. -- error compiling committee.c: too many arguments to function