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-08-21 21:15:13


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

  * status: new => closed
  * resolution: => invalid

Comment:

 Replying to [comment:4 lenzo@…]:
> 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?

 That's just the way C++ works. The compiler only checks the declaration
 (which is correct), not the definition.

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