Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12050: error C2668: 'boost::begin' : ambiguous call to overloaded function
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-03-14 15:05:11
#12050: error C2668: 'boost::begin' : ambiguous call to overloaded function
-------------------------------+-------------------------
Reporter: greatsaurav@⦠| Owner:
Type: Support Requests | Status: new
Milestone: To Be Determined | Component: None
Version: Boost 1.34.1 | Severity: Showstopper
Resolution: | Keywords:
-------------------------------+-------------------------
Comment (by michel):
> I am not able to understand that what info you want from me to get rid
of this issue.
ADL depends on the type of arguments, but that info is missing in this
ticket.
So we cannot reproduce the error.
Also note that, since some compilers have bugs, it is helpful for
developers
to know what compiler (and which version) is used.
Unfortunately, Boost 1.34 is too old so you may get only a little help
(even if you provide enough info) as John said.
But anyway, here's a possible fix:
`boost::begin` (`end`) itself is not a customization point,
so don't use it as an unqualifed call (i.e. `begin(Input)`);
if you intend to use `boost::begin`, qualify `begin` with `boost::`
(i.e. `boost::begin(Input)`).
See the bottom of
[[http://www.boost.org/libs/range/doc/html/range/reference/concept_implementation/semantics/functions.html|this
page]].
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12050#comment:6> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC