cancel
Showing results for 
Search instead for 
Did you mean: 

static_assert() C++11ism incompatibility

matte
Honored Guest
Hi,

I notice in the new 0.5.0 SDK there have been some static_assert() lines added in OVR_CAPI_GL.h. They are hidden behind #if defined(__cplusplus) however if I'm not mistaken static_assert is only available in C++11. The app I'm adding Rift support to (openFrameworks) does not yet compile with C++11, and I imagine there might be other apps that don't support it yet either.

Right now as a dodgy workaround, I've just commented the lines out, which is probably dangerous, but is getting me closer to a working build with the new SDK.

Is there a fix for this to work in C++ versions before C++11?
1 REPLY 1

paul_pedriana
Explorer
Thanks. We'll add some backwards compatibility to address this, which will appear in a future release. In the meantime, feel free to delete the offending static_assert lines from your header.