octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with stdbool.h redefining true/false even in C++


From: Michael Goffioul
Subject: Problem with stdbool.h redefining true/false even in C++
Date: Wed, 29 Aug 2012 10:55:27 +0100

Hi,

When compiling octave with MSVC under Windows, I found an issue with how stdbool.h (from gnulib) redefines true/false unconditionally, even in C++ mode. The net result is that in C++, true/false do not have the bool type anymore, but integer. This creates miscompilation in octave code, where the unexpected constructor is used (with integer argument instead of bool argument) and creates octave values with the wrong type.

Can this be fixed in gnulib?

Michael.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]