Re: [Boost-bugs] [Boost C++ Libraries] #3270: Ambiguous conversion, even though no conversion exists

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3270: Ambiguous conversion, even though no conversion exists
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-07-21 11:43:09


#3270: Ambiguous conversion, even though no conversion exists
-------------------------------------------------+--------------------------
 Reporter: Olaf Lenz <lenzo@…> | Owner: dgregor
     Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: function
  Version: Boost 1.39.0 | Severity: Problem
 Keywords: |
-------------------------------------------------+--------------------------

Comment(by lenzo@…):

 Ok, yes, this seems to work. Thanks for the hint.

 I'm not exactly sure what to do about this ticket now. It seems to be not
 exactly a bug in boost.function, but more of a generic C++ problem. Is it
 even a problem in the C++ standard?
 I mean, it is surely not a Good Thing (tm) if C++-code does not compile
 even though there would be a perfectly valid solution, only because the
 compiler cannot identify it.

 I must, however, admit, that I am currently not able to pinpoint the
 precise problem: why does the compiler first think that there is a
 conversion from any object to a boost.function object, and only later
 notice that it cannot call the object?

 Do you have any suggestions how to proceed? Or shall we just close this
 issue as invalid or wontfix?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3270#comment:4>
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:00 UTC