apiaryio / drafter

API Blueprint Parser (C++)
https://apiblueprint.org/
MIT License
301 stars 54 forks source link

Fix support for MSVC 2019 #742

Closed kylef closed 5 years ago

kylef commented 5 years ago

https://github.com/apiaryio/drafter/pull/726 broken MSVC 2019 compatibility, I was finding the following compiler error:

ext\snowcrash\src\Just.h(21, 26): error C2131:  expression did not evaluate to a constant
ext\snowcrash\src\Just.h(21, 1): error C2440:  'noexcept': cannot convert from 'T' to 'bool
...
ext\snowcrash\src\Just.h(21, 26): message :  No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called

Fixes #738