yhirose / cpp-peglib

A single file C++ header-only PEG (Parsing Expression Grammars) library
MIT License
879 stars 112 forks source link

check c++ version correctly under MSVC #300

Closed RicoP closed 2 months ago

RicoP commented 2 months ago

I added a macro to test against _MSVC_LANG rather than cplusplus under MSVC so windows users don't have to pass the `/Zc:cplusplus` option.

yhirose commented 2 months ago

@RicoP thank you for the pull request, but I would not like to introduce any vender specific macro or code in peglib.h.