[stlport-bugs] [ stlport-Bugs-1878686 ] add explicit qualification in function calls
Brought to you by:
complement
From: SourceForge.net <no...@so...> - 2008-01-24 10:23:24
|
Bugs item #1878686, was opened at 2008-01-24 07:14 Message generated for change (Settings changed) made by dums You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=766244&aid=1878686&group_id=146814 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General code Group: None Status: Open >Resolution: Accepted >Priority: 7 Private: No Submitted By: Max Yanchenko (enerjazzer) Assigned to: Nobody/Anonymous (nobody) Summary: add explicit qualification in function calls Initial Comment: Please consider the following code: #include <boost/mpl/distance.hpp> #include <boost/mpl/empty_base.hpp> #include <list> struct X : boost::mpl::empty_base {}; void dummy() { std::list<X>().size(); } This innocent code doesn't compile with STLPort - std::list::size() makes an unqualified call to distance(), so ADL finds both std::distance and boost::mpl::distance, resulting in anbiguity: size_type size() const { size_type __result = distance(begin(), end()); return __result; } Could you please change the call to qualified std::distance in this and similar places? Thanks, Maxim ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=766244&aid=1878686&group_id=146814 |