[Codename Milan] Variadic Template Function with tuples not compiling - by dhait

Status : 


Sign in
to vote
ID 776835 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 1/17/2013 1:44:32 PM
Access Restriction Public


The following valid C++ code does not compile:

template <typename F, typename... Args>
    void apply(F f, std::tuple<Args...>& args) {
       // doesn't do much yet

bool f1(char c) {
    return c == 'c';

int main(int argc, char* argv[]) {
    auto t = std::make_tuple('c');
    apply(f1, t);
return 0;
Sign in to post a comment.
Posted by Microsoft on 4/29/2014 at 12:29 PM
Thank you for reporting this issue. This issue has been fixed in Visual Studio 2013. You can install a trial version of Visual Studio 2013 with the fix from: http://go.microsoft.com/?linkid=9832436
Posted by Microsoft on 1/23/2013 at 12:04 PM
Hi: Thanks for reporting this issue - a fix has been checked into the compiler sources and it should show up in the next release of Visual C++.

Jonathan Caves
Visual C++ Compiler Team
Posted by Microsoft on 1/17/2013 at 6:27 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 1/17/2013 at 1:50 PM
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)