-
-
Notifications
You must be signed in to change notification settings - Fork 262
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
For the following piece of code:
template <class T>
void foo(T && t)
{ }
struct Test {};
int main()
{
Test test;
foo(test);
return 0;
}
output of an instantiation of foo is the following:
/* First instantiated from: insights.cpp:10 */
#ifdef INSIGHTS_USE_TEMPLATE
template<>
void foo<Test &>(Test && t)
{
}
#endif
Argument type should be Test & but not Test && because of reference collapsing.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working