|
Boost : |
Subject: [boost] [Range] compilation error with mfc-iteration-support
From: Tobias Loew (Tobias.Loew_at_[hidden])
Date: 2014-08-24 04:24:13
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-iteration-support-tp4666839.html Sent from the Boost - Dev mailing list archive at Nabble.com.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk