On 03/16/2015 03:05 AM, Roman Wüger wrote:
> attached is an updated patch.
Applied, thanks:
WCDH: Fix cxx_nullptr workaround for pre-C++11 compilers
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f9d09626
-Brad
--
Powered by www.kitware.com
Please keep messages on-topic and check the CM
Hi Brad,
attached is an updated patch.
Roman
From ea75cb1a3d866d923b6711c9e0c0bbf1f66d7dbf Mon Sep 17 00:00:00 2001
From: Roman Wüger
Date: Fri, 13 Mar 2015 09:18:19 +0100
Subject: [PATCH] WCDH: Fix cxx_nullptr for compilers which doesn't support
C++11
---
Modules/WriteCompilerDetectionHead
On 03/11/2015 05:22 PM, Roman Wüger wrote:
> This simple example produces the following error on Mac OS:
> error: cannot initialize a parameter of type 'bool *' with an rvalue of type
> 'void *'
> void doSomething(int n = 1, bool *ok = static_cast(0)) {
> ^~~~
Hello,
I've attached a patch for this problem.
Best Regards
From 3b77b957a41ce00c8e5d8d47ce442887181d669d Mon Sep 17 00:00:00 2001
From: Roman Wüger
Date: Thu, 12 Mar 2015 11:51:24 +0100
Subject: [PATCH] WCDH: Fix cxx_nullptr for compilers which doesn't support
C++11
---
Modules/WriteCompil
Hello,
i tried to use the generated compiler detection header but get an error if I
use the cxx_nullptr feature on a compiler which doesnt support C++11.
void doSomething(int n, bool *ok = 0) {
if (ok)
*ok = true;
if (n != 0) {
if (ok)
*ok = fals