yhirose / cpp-peglib

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

check c++ version correctly under MSVC #300

Closed RicoP closed 5 months ago

RicoP commented 5 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 5 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.