[Codename Milan] Cannot specialize variadic template functions - by AndreiTita

Status : 


Sign in
to vote
ID 774025 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 12/11/2012 6:59:29 AM
Access Restriction Public


As per the title. Replacing the return or argument types in the shown example produces the same error.
Sign in to post a comment.
Posted by Microsoft on 2/11/2013 at 9:53 AM
Hi: this issue has been fixed and the fix should show up in the next release of Visual C++

Jonathan Caves
Visual C++ Compiler Team
Posted by UnitUniverse on 1/21/2013 at 3:38 AM
Your code won't be compiled and, however, the following will:

// ConsoleApplication1.cpp : Defines the entry point for the console application.

#include "stdafx.h"
#include <functional>
#include <conio.h>

#include "stdlib.h"
#include <iostream>

template<int, typename... Args>
void myfunc(Args... args)

void myfunc<1>(float)

int _tmain(int argc, TCHAR * argv[])
    myfunc<0, int>(1);
    myfunc<1, float>(1.0f);

    return 0;

Posted by Microsoft on 12/11/2012 at 9:59 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 12/11/2012 at 7:50 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)