Only test C++ demo in std mode, as it relies on threading support