diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2024-06-30 01:22:05 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2024-06-30 01:22:05 +0200 |
commit | 96974169199d347172fc5d4a2924f092d602b3de (patch) | |
tree | 627633460b7e830d7a4dcb58de37733d84742e46 /src/Main/StringFormatter.h | |
parent | 1e7d6948c991e8c0153fdbf06d82844595c138f8 (diff) | |
download | VeraCrypt-96974169199d347172fc5d4a2924f092d602b3de.tar.gz VeraCrypt-96974169199d347172fc5d4a2924f092d602b3de.zip |
Linux: Make the C++ code compatible with old compilers (g++ 4.4.7 on CentOS 6)
Diffstat (limited to 'src/Main/StringFormatter.h')
-rw-r--r-- | src/Main/StringFormatter.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Main/StringFormatter.h b/src/Main/StringFormatter.h index 97c39ae2..d7f64dd0 100644 --- a/src/Main/StringFormatter.h +++ b/src/Main/StringFormatter.h @@ -52,7 +52,10 @@ namespace VeraCrypt StringFormatter (const wxString &format, StringFormatterArg arg0 = StringFormatterArg(), StringFormatterArg arg1 = StringFormatterArg(), StringFormatterArg arg2 = StringFormatterArg(), StringFormatterArg arg3 = StringFormatterArg(), StringFormatterArg arg4 = StringFormatterArg(), StringFormatterArg arg5 = StringFormatterArg(), StringFormatterArg arg6 = StringFormatterArg(), StringFormatterArg arg7 = StringFormatterArg(), StringFormatterArg arg8 = StringFormatterArg(), StringFormatterArg arg9 = StringFormatterArg()); virtual ~StringFormatter (); - explicit operator wstring () const { return wstring (FormattedString); } +#if (__cplusplus >= 201103L) + explicit +#endif + operator wstring () const { return wstring (FormattedString); } operator wxString () const { return FormattedString; } operator StringFormatterArg () const { return FormattedString; } |