Skip to content

Commit 1b51b1b

Browse files
committed
GPU: fix, RTC not usable without C++17
1 parent e275e29 commit 1b51b1b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

GPU/GPUTracking/Standalone/utils/qconfigrtc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,15 @@
2525
template <class T>
2626
static std::string qConfigPrintRtc(const T& tSrc, bool useConstexpr)
2727
{
28+
#if defined(__cplusplus) && __cplusplus >= 201703L
2829
std::stringstream out;
2930
#define QCONFIG_PRINT_RTC
3031
#include "qconfig.h"
3132
#undef QCONFIG_PRINT_RTC
3233
return out.str();
34+
#else
35+
throw std::runtime_error("not supported");
36+
#endif
3337
}
3438

3539
#define QCONFIG_CONVERT_RTC

0 commit comments

Comments
 (0)