C++ Logo

STD-PROPOSALS

Advanced search

Subject: Re: [std-proposals] Formalize Compatibility with C
From: connor horman (chorman64_at_[hidden])
Date: 2020-01-07 09:51:06


So the reason I want to make bool and _Bool compatible is because currently
it is technically impossible to have a C api exposed to C++ that returns
bool, without using some other type. This applies to structures that need
to contain a boolean value. This affects all common apis.

On Mon, Jan 6, 2020 at 11:30 Askar Safin <safinaskar_at_[hidden]> wrote:

> Hi.
>
> > The C++ bool and C _Bool types are compatible
> This is very complicated. See, for example, this letter:
> https://gcc.gnu.org/ml/gcc/2002-04/msg01472.html
>
> Askar



STD-PROPOSALS list run by std-proposals-owner@lists.isocpp.org

Standard Proposals Archives on Google Groups