From owner-svn-src-head@FreeBSD.ORG Fri Dec 30 17:45:20 2011 Return-Path: Delivered-To: svn-src-head@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A3FFD1065670; Fri, 30 Dec 2011 17:45:20 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from theravensnest.org (theravensnest.org [109.169.23.128]) by mx1.freebsd.org (Postfix) with ESMTP id 2EFED8FC0C; Fri, 30 Dec 2011 17:45:19 +0000 (UTC) Received: from [192.168.0.2] (cpc2-cwma5-0-0-cust875.7-3.cable.virginmedia.com [86.11.39.108]) (authenticated bits=0) by theravensnest.org (8.14.4/8.14.4) with ESMTP id pBUHjI7p097361 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Fri, 30 Dec 2011 17:45:18 GMT (envelope-from theraven@FreeBSD.org) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii From: David Chisnall In-Reply-To: Date: Fri, 30 Dec 2011 17:45:13 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <0473BBE1-7A08-4B8B-A70A-A4B44E32302C@FreeBSD.org> References: <201112252015.pBPKFfZ1073959@svn.freebsd.org> To: "Sean C. Farley" X-Mailer: Apple Mail (2.1251.1) Cc: svn-src-head@FreeBSD.org, Matthew D Fleming , svn-src-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r228878 - head/include X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2011 17:45:20 -0000 On 30 Dec 2011, at 16:52, Sean C. Farley wrote: >> My quick googling didn't show anything at all about the C++ standard = and stdbool.h or __bool_true_false_are_defined. It was probably = originally set because bool, true, and false are all C++ keywords so = certain code that wanted to ifdef on them didn't also need to check = __cplusplus. >=20 > I did not find anything definitive either. It's usually a better idea to check the spec than Google... stdbool.h is not part of the C++ standard, and so it is free to contain = anything in C++ mode, just as any other non-standard header is. The = header is defined by the C++11 spec as containing JUST the = __bool_true_false_are_defined macro. The purpose of this header in C++ = mode is to allow the inclusion of C++ headers that expect to be able to = use true and false and guard this by the use of the = __bool_true_false_are_defined macro. David=