]> git.lyx.org Git - features.git/commitdiff
Use macro LYX_USE_CXX11 in one more location
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 22 May 2015 10:41:30 +0000 (12:41 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 22 May 2015 10:41:30 +0000 (12:41 +0200)
This is a follow-up to commit 329eae56.

src/tex2lyx/Parser.h

index 9778765ed6f2dce76c8c244f16e13576a64ae9ea..489b1325492eff14f0bec11ac81e6f196918bef0 100644 (file)
@@ -125,7 +125,7 @@ public:
 
        iparserdocstream(idocstream & is) : is_(is) {}
 
-#if (__cplusplus > 199711L)
+#ifdef LYX_USE_CXX11
        /// Like std::istream::operator bool()
        /// Do not convert is_ implicitly to bool, since that is forbidden in C++11.
        explicit operator bool() const { return s_.empty() ? !is_.fail() : true; }