[Range] compilation error with mfc-iteration-support
Hi, moving parts of range_const_iterator to the namespace range_detail in file boost/range/const_iterator.hpp leads to ambiguity in /range/detail/mfc.hpp line 747: 25>..\src\libs\boost\boost\boost/range/mfc.hpp(747): error C2872: 'range_const_iterator' : ambiguous symbol 25> could be '..\src\libs\boost\boost\boost/range/const_iterator.hpp(67) : boost::range_const_iterator' 25> or '..\src\libs\boost\boost\boost/range/const_iterator.hpp(40) : boost::range_detail::range_const_iterator' 25> ..\src\libs\boost\boost\boost/range/detail/microsoft.hpp(135) : see reference to class template instantiation 'boost::range_detail_microsoft::customization<Tag>::meta<X>' being compiled 25> with 25> [ 25> Tag=CEbsValueArray::mfc_range_base_type, 25> X=CTypedPtrArray<CObArray,EbsValue *> 25> ] 25> ..\src\libs\boost\boost\boost/range/begin.hpp(111) : see reference to class template instantiation 'boost::range_detail_microsoft::const_iterator_of<T>' being compiled 25> with 25> [ 25> T=CTypedPtrArray<CObArray,EbsValue *> 25> ] ... changing the name of boost::range_detail::range_const_iterator to boost::range_detail::range_const_iterator_helper resolves the problem. I expect other begin/end adapters to run into the same problem. Tobias -- View this message in context: http://boost.2283326.n4.nabble.com/Range-compilation-error-with-mfc-iteratio... Sent from the Boost - Dev mailing list archive at Nabble.com.
On 8/24/2014 1:24 AM, Tobias Loew wrote: <snip>
changing the name of
boost::range_detail::range_const_iterator
to
boost::range_detail::range_const_iterator_helper
resolves the problem. I expect other begin/end adapters to run into the same problem.
Please file a bug. Thanks, Eric
Done. -- View this message in context: http://boost.2283326.n4.nabble.com/Range-compilation-error-with-mfc-iteratio... Sent from the Boost - Dev mailing list archive at Nabble.com.
participants (2)
-
Eric Niebler
-
Tobias Loew