taocpp / taopq

C++ client library for PostgreSQL
Boost Software License 1.0
265 stars 40 forks source link

Replicate __builtin_unreachable() on MSVC with __assume(false) #31

Closed emmenlau closed 3 years ago

emmenlau commented 3 years ago

This PR adds a minor change for MSVC: I could not find a definition of __builtin_unreachable() on MSVC. Supposedly the equivalent for the Microsoft compiler is to use __assume(false). Tested with Visual Studio 2019 x64 using the Microsfot and the ClangCL compilers.

emmenlau commented 3 years ago

Thanks!