vivkin / gason

Lightweight and fast JSON parser for C++
MIT License
338 stars 51 forks source link

C++11 good practices: constexpr instead of #define #17

Open duckie opened 9 years ago

duckie commented 9 years ago

No API breakage here, juste replacing some pre-processor macros by C++11 constant expressions.

If constexpr is a problem for people using vs2013 prior to the November CTP, then a simple const would do the job.