Open julmayer opened 8 years ago
No it isn't a know problem. xpl.h is from the WJElement library which I forked for this project. I tried to keep changes to that library to those absolute necessary to support my JSON Schema 04 implementation.
Strange is that on my Centos 6.2 box the example compiles fine with GCC 4.4.7 regardless of the order of includes. So I presume this issue has something to do with the compiler version.
Since you have a work around I won't do anything about this but have raised the issue with the maintainers of WJElement.
Hi everyone, the naming clash was fixed in WJElement in Pull Request #71. If I understand that compare correctly https://github.com/netmail-open/wjelement/compare/master...petehug:wjelement++ there is not more difference between your forked wjelement++ branch and original WJElement master so it should be save to use the WJElement master instead of your wlemenet++ branch. Am I correct or do you see any problems?
Hi, I was trying to include your library in a project and was facing a lot of errors of the following type :
It's caused by the macros min and max from xpl.h of the wjelement library. After wondering why your example works I found out that I can fix/force the error by changing the order of the includes. You could force the error with the following code (it's your example but with changed order of the first two lines):
Is this a known problem? Including the headers in the "correct" order works for me but maybe it's a safer to rename the macros to something more unique like XPL_MIN.