Re: [cmake-developers] [CMake] Problems with WriteCompilerDetectionHeader and cxx_nullptr

2015-03-17 Thread Brad King
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

Re: [CMake] Problems with WriteCompilerDetectionHeader and cxx_nullptr

2015-03-17 Thread Brad King
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

Re: [cmake-developers] [CMake] Problems with WriteCompilerDetectionHeader and cxx_nullptr

2015-03-16 Thread Roman Wüger
Hi Brad, attached is an updated patch. Roman From ea75cb1a3d866d923b6711c9e0c0bbf1f66d7dbf Mon Sep 17 00:00:00 2001 From: Roman Wüger roman.wue...@gmx.at Date: Fri, 13 Mar 2015 09:18:19 +0100 Subject: [PATCH] WCDH: Fix cxx_nullptr for compilers which doesn't support C++11 ---

Re: [CMake] Problems with WriteCompilerDetectionHeader and cxx_nullptr

2015-03-12 Thread Brad King
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_castvoid*(0)) { ^

Re: [cmake-developers] [CMake] Problems with WriteCompilerDetectionHeader and cxx_nullptr

2015-03-12 Thread Brad King
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_castvoid*(0)) { ^

[CMake] Problems with WriteCompilerDetectionHeader and cxx_nullptr

2015-03-12 Thread Roman Wüger
Hello, I've attached a patch for this problem. Best Regards From 3b77b957a41ce00c8e5d8d47ce442887181d669d Mon Sep 17 00:00:00 2001 From: Roman Wüger roman.wue...@gmx.at Date: Thu, 12 Mar 2015 11:51:24 +0100 Subject: [PATCH] WCDH: Fix cxx_nullptr for compilers which doesn't support C++11 ---

[CMake] Problems with WriteCompilerDetectionHeader and cxx_nullptr

2015-03-11 Thread Roman Wüger
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 doesn’t support C++11. void doSomething(int n, bool *ok = 0) { if (ok) *ok = true; if (n != 0) { if (ok) *ok =