diff liboctave/system/oct-env.cc @ 23809:e56d84a16a2e

Fix "no match for 'operator=='" when comparing C++ string to char literal.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 29 Jul 2017 20:57:07 +0200
parents 8057d3f0673d
children 057a894914df
line wrap: on
line diff
--- a/liboctave/system/oct-env.cc	Sat Jul 29 09:17:53 2017 +0200
+++ b/liboctave/system/oct-env.cc	Sat Jul 29 20:57:07 2017 +0200
@@ -207,7 +207,7 @@
 
       // Some versions of MinGW and MSVC either don't define P_tmpdir, or
       // define it to a single backslash.  In such cases just use C:\temp.
-      if (tempd.empty () || tempd == '\\')
+      if (tempd.empty () || tempd == R"(\)")
         tempd = R"(c:\temp)";
 
 #else