| 52 | } |
| 53 | |
| 54 | bool regex_match(std::string str, std::string regex) |
| 55 | { |
| 56 | #if (defined(__INTEL_COMPILER) && (__INTEL_COMPILER < 1600)) // works around __ZTVNSt3__123__match_any_but_newlineIcEE link error |
| 57 | return str == regex; |
| 58 | #elif defined(__GNUC__) && !defined(__clang__) && (__GNUC__ <= 4) && (__GNUC_MINOR__ < 8) // workaround for older gcc version |
| 59 | return str == regex; |
| 60 | #else |
| 61 | std::smatch match; std::regex regexpr(regex); |
| 62 | return std::regex_match(str, match, regexpr); |
| 63 | #endif |
| 64 | } |
| 65 | |
| 66 | void AssertNoError(RTCDevice device) |
| 67 | { |
no outgoing calls
no test coverage detected