]> git.lyx.org Git - lyx.git/commit
Fix compilation with libc++
authorGeorg Baum <baum@lyx.org>
Tue, 4 Mar 2014 22:04:27 +0000 (23:04 +0100)
committerGeorg Baum <baum@lyx.org>
Tue, 4 Mar 2014 22:27:57 +0000 (23:27 +0100)
commit07afd76b7c3560b53ad1377812a7a5f30696d163
treec82a313b0b70feaeba936a56e5b4fef03125acdc
parentab176bfbcce312908103c0f0d54c38b2b2da69e3
Fix compilation with libc++

libc++ (http://libcxx.llvm.org/) is used on OS X with newer XCode.
The patch is from Benjamin Piwowarski <benjamin.piwowarski@lip6.fr>, I only
added more comments.
The changes regarding implicit conversion to bool of std::iostream work
because both the C++98 and C++11 standards guarantee that boolean evaluation
of streams returns !fail(). See e.g.
http://stackoverflow.com/questions/1334858/why-dont-iostream-objects-overload-operator-bool
for details.
src/Buffer.cpp
src/mathed/MathExtern.cpp
src/support/debug.h
src/support/strfwd.h
src/tex2lyx/Parser.h