petehug / wjelement-cpp

WJElement-cpp - Lightweight C++ wrapper for WJElement with JSON Schema support
GNU Lesser General Public License v3.0
9 stars 3 forks source link

[question] Is it fine to drop boost package in wjelement-cpp? Any alternative package suggested? #3

Open wrenashe opened 8 years ago

wrenashe commented 8 years ago

Is it fine to drop boost package in wjelement-cpp? Any alternative packages suggested?

petehug commented 8 years ago

I'm sure there are alternatives, but I haven't looked at this.

Simply removing boost would require removing all boost::regex and boost::thread references. Without boost::regex, JSON Schema Draft-04 regex validation would not be supported and without boost::thread, you can run into concurrency issues in multi-threaded apps.

Please note that you can download pre-built boost libraries (they are rather large) and all you need to do is ensure thau your build environments include and library paths point to the boost library. Surely this takes much less time than "bastardising" wjelement-cpp.