If you are interested, for each instance of BOOST_FOREACH I get these 5 errors:

1>C:\Projects\libs\boost\boost/foreach.hpp(169): error C2039: 'tag' : is not a member of 'boost::Q_FOREACH'
1>C:\Projects\libs\boost\boost/foreach.hpp(169): error C2061: syntax error : identifier 'tag'
1>C:\Projects\ogs\FileIO\XmlIO\Boost\BoostXmlGmlInterface.cpp(66): error C2780: 'boost::Q_FOREACH::is_noncopyable<T> *boost_foreach_is_noncopyable(T *&)' : expects 1 arguments - 2 provided
1>C:\Projects\ogs\FileIO\XmlIO\Boost\BoostXmlGmlInterface.cpp(66): error C2784: 'boost::foreach_detail_::auto_any<T*> boost::foreach_detail_::begin(boost::foreach_detail_::auto_any_t,boost::foreach_detail_::type2type<T*,C> *,boost::mpl::true_ *)' : could not deduce template argument for 'boost::foreach_detail_::type2type<T*,C> *' from 'boost::foreach_detail_::type2type<T,C> *'
1>          with
1>          [
1>              T=boost::property_tree::ptree,
1>              C=boost::foreach_detail_::const_
1>          ]
1>          C:\Projects\libs\boost\boost/foreach.hpp(690) : see declaration of 'boost::foreach_detail_::begin'
1>          C:\Projects\libs\boost\boost/foreach.hpp(690) : see declaration of 'boost::foreach_detail_::begin'
1>          C:\Projects\libs\boost\boost/foreach.hpp(194) : see declaration of 'boost_foreach_is_noncopyable'
1>          C:\Projects\libs\boost\boost/multi_index/ordered_index.hpp(1396) : see declaration of 'boost_foreach_is_noncopyable'
1>          C:\Projects\libs\boost\boost/multi_index/sequenced_index.hpp(924) : see declaration of 'boost_foreach_is_noncopyable'
1>          C:\Projects\libs\boost\boost/foreach.hpp(185) : see declaration of 'boost_foreach_is_lightweight_proxy'
1>          C:\Projects\libs\boost\boost/foreach.hpp(181) : see declaration of 'boost_foreach_is_lightweight_proxy'
1>          C:\Projects\libs\boost\boost/foreach.hpp(177) : see declaration of 'boost_foreach_is_lightweight_proxy'
1>          C:\Projects\libs\boost\boost/foreach.hpp(173) : see declaration of 'boost_foreach_is_lightweight_proxy'
1>          C:\Projects\libs\boost\boost/foreach.hpp(169) : see declaration of 'boost_foreach_is_lightweight_proxy'
1>          C:\Projects\libs\boost\boost/foreach.hpp(209) : see declaration of 'boost::foreach_detail_::and_'
1>          C:\Projects\libs\boost\boost/foreach.hpp(215) : see declaration of 'boost::foreach_detail_::or_'
1>C:\Projects\ogs\FileIO\XmlIO\Boost\BoostXmlGmlInterface.cpp(66): error C2784: 'boost::foreach_detail_::auto_any<T> boost::foreach_detail_::end(boost::foreach_detail_::auto_any_t,boost::foreach_detail_::type2type<T*,C> *,boost::mpl::true_ *)' : could not deduce template argument for 'boost::foreach_detail_::type2type<T*,C> *' from 'boost::foreach_detail_::type2type<T,C> *'
1>          with
1>          [
1>              T=int
1>          ]
1>          and
1>          [
1>              T=boost::property_tree::ptree,
1>              C=boost::foreach_detail_::const_
1>          ]
1>          C:\Projects\libs\boost\boost/foreach.hpp(730) : see declaration of 'boost::foreach_detail_::end'
1>          C:\Projects\libs\boost\boost/foreach.hpp(730) : see declaration of 'boost::foreach_detail_::end'