Re: [Boost-bugs] [Boost C++ Libraries] #2793: function types don't work for named template type parameters

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2793: function types don't work for named template type parameters
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-03-17 03:34:14


#2793: function types don't work for named template type parameters
---------------------------+------------------------------------------------
  Reporter: fmhess | Owner: danielw
      Type: Bugs | Status: new
 Milestone: Boost 1.39.0 | Component: parameter
   Version: Boost 1.38.0 | Severity: Problem
Resolution: | Keywords:
---------------------------+------------------------------------------------

Comment (by expaler):

 Replying to [comment:1 fmhess]:
> I believe the test is valid and the patch is not quite right.

 I hope you don't mind if I disagree with your assessment. The reference
 documentation ''does'' state that the `binding` metafunction returns the
 reference type rather than the value type. Of course, if the patch is
 applied, then perhaps the documentation should be changed to reflect the
 fact that the metafunction returns the reference type only if the tagged
 reference is a primitive function or array. Or perhaps not, since
 metaprogrammers can just `add_reference`.

 In any case, I don't see why legacy code that is already broken for
 function types shouldn't be changed to use `value_type` instead of
 `binding`. I vote to have the patch applied.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2793#comment:2>
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:05 UTC