-
-
Notifications
You must be signed in to change notification settings - Fork 262
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
in an expansion of
template<typename... Args> struct count;
template<>
struct count<> {
static const int value = 0;
};
template<typename T, typename... Args>
struct count<T, Args...>
{
static const int value = 1 + count<Args...>::value;
};
static_assert(count<int, double>::value == 2,
"2 elements");the last expansion uses value instead of count<>::value:
/* First instantiated from: insights.cpp:11 */
#ifdef INSIGHTS_USE_TEMPLATE
template<>
struct count<double>
{
static const int value = 1 + value;
};
#endifMetadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working