File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 10
10
##############################################
11
11
# IGA dynamic and static library generation
12
12
13
- set (CMAKE_CXX_STANDARD 17 )
13
+ set (CMAKE_CXX_STANDARD 14 )
14
14
15
15
##############################################
16
16
# compute the version string from the git repo
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ SPDX-License-Identifier: MIT
32
32
#include < sstream>
33
33
#include < string>
34
34
#include < vector>
35
- #include < type_traits>
36
35
37
36
using namespace iga ;
38
37
@@ -243,6 +242,14 @@ unsigned iga::LastError()
243
242
#endif // _WIN32
244
243
}
245
244
245
+ static void add_strerror_r_to_error (char *errMsg, int strerror_r_return_value)
246
+ {
247
+ }
248
+ static void add_strerror_r_to_error (char *errMsg, char *strerror_r_return_value)
249
+ {
250
+ errMsg = strerror_r_return_value;
251
+ }
252
+
246
253
std::string iga::FormatLastError (unsigned errCode)
247
254
{
248
255
std::string msg;
@@ -262,10 +269,7 @@ std::string iga::FormatLastError(unsigned errCode)
262
269
#else
263
270
// Response to issue https://github.com/intel/intel-graphics-compiler/issues/213
264
271
auto strerror_r_return_value = strerror_r (errCode, buf, sizeof (buf));
265
- if constexpr (std::is_same<decltype (strerror_r_return_value), char *>::value)
266
- {
267
- errMsg = strerror_r_return_value;
268
- }
272
+ add_strerror_r_to_error (errMsg, strerror_r_return_value);
269
273
#endif // _WIN32
270
274
if (errMsg == nullptr || errMsg[0 ] == 0 )
271
275
return " ???" ;
You can’t perform that action at this time.
0 commit comments