[cmake-developers] Problems with WriteCompilerDetectionHeader and cxx_nullptr

2015-03-12 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 =

[cmake-developers] 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 ---