Re: VS 2005 Bug?
- From: "Victor Bazarov" <v.Abazarov@xxxxxxxxxxxx>
- Date: Wed, 14 Feb 2007 09:49:44 -0500
John Carson wrote:
<uvts_cvs@xxxxxxxxx> wrote in message
news:1171447103.962079.235320@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Feb 13, 8:52 pm, "Ben Voigt" <r...@xxxxxxxxxxxxx> wrote:
<uvts_...@xxxxxxxxx> wrote in message
news:1171360780.845664.323990@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
It looks like an error in template argument deduction. You should
confirm
that explicitly specifying the template argument works, then post a
bug report on Microsoft Connect.
I can confirm that this is an error in template argument deduction.
call<void(*)(int)> (foo);
Compiles successfully.
I posted the bug on Microsoft Connect and just a few hour later the
status of the bug became Resolved(Won't Fix) without any note.
This is the last time I spend my time to help Microsoft finding bugs!
I think that is rather poor.
I understand that MS has to set priorities and that compiler updates
are years in the planning, but to simply say they won't fix it without
explanation isn't good enough. If you make the effort to report a bug,
complete with steps to reproduce it, then you deserve better.
I would like to this this is some site glitch or that further
information will be forthcoming later. The report is here
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=257746
I added a vote and validation. I suggest that others who think it
should be fixed do likewise.
I've added a work-around (not necessarily possible in the OP's case).
If the 'call' template is written this way:
template <typename f_t>
void call (f_t f)
{
f(0);
}
it will compile. Not sure what the reason for having 'f' a reference
was initially.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
.
- Follow-Ups:
- Re: VS 2005 Bug?
- From: Tom Widmer [VC++ MVP]
- Re: VS 2005 Bug?
- References:
- VS 2005 Bug?
- From: uvts_cvs
- Re: VS 2005 Bug?
- From: Ben Voigt
- Re: VS 2005 Bug?
- From: uvts_cvs
- Re: VS 2005 Bug?
- From: John Carson
- VS 2005 Bug?
- Prev by Date: Re: VS 2005 Bug?
- Next by Date: Re: VS 2005 Bug?
- Previous by thread: Re: VS 2005 Bug?
- Next by thread: Re: VS 2005 Bug?
- Index(es):
Relevant Pages
|