[boost] When including <boost/property_tree/ptree.hpp>, I receive these errors..

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: [boost] When including <boost/property_tree/ptree.hpp>, I receive these errors..

Originally Posted by lucky6969b

I know the answer of my problem, I find maxsdk and boost's method name base_type() clash
Both have it.
How can I resolve it?

Do you mean the maxsdk has a macro named base_type? That's just plain evil. You should definitely ask them to change this.
As a work-around, can you make sure that the boost headers are always included before the maxsdk ones?

Cheers, D Drmmr

Please put [code][/code] tags around your code to preserve indentation and make it more readable.

As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky

Re: [boost] When including <boost/property_tree/ptree.hpp>, I receive these errors..

that makes it even worse...
it's bad enough a lib defines macro's.
it's worse when it does so without regard for 'usual convention' (macro names being uppercase) and doesn't even try to make the macro names specific enough to avoid conflict.