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: 2013-01-30 02:19:47
#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 Louis Dionne <louis.dionne92@â¦>):
I have run into this problem too.
Instead of changing the definition of `reference`, I opted for a more
conservative solution. Since I was getting compiler errors in the
declarations of some member functions of `arg_list`, I changed these
declarations so that the problematic types are dependent on a template
parameter. Since the functions are never actually used for named template
parameters, the signatures are not instantiated and the compiler does not
complain.
Attached is a patch that makes the `function_type_named_parameter.cpp`
test pass. My own code also works with this patch. While this is a hacky
workaround, I believe it is still better than nothing until a definite
solution can be settled on.
I compiled with Clang 3.2 and G++ 4.7.2.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2793#comment:3> 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:11 UTC