I've got reasons to believe (but couldn't check directly) that the following program
#include <iostream>
#include <initializer_list>
struct foo
{
template<typename... Args>
foo(Args&&...){std::cout<<"int ctor\n";}
foo(std::initializer_list<int>){std::cout<<"init-list ctor\n";}
};
int main()
{
foo x{1};
}
will output "int ctor" rather than "init-list ctor" (which is the right output) in Intel 14.01. Could some with access to the compiler check this out? Thank you!
Joaquín M López Muñoz
Telefónica Digital