[ConceptGCC] |
ConceptGCC :incomplete data types |
From: TheChao (jaroslov_at_[hidden])
Date: 2007-01-22 11:54:54
What combination of concepts allows me to declare arrays without getting an
'have incomplete type' error?
*** errror ***
help.cpp: In function 'void foo(DC)':
help.cpp:6: error: elements of array 'DC vals [8]' have incomplete type
**** code ****
#include<concepts>
template <std::DefaultConstructible DC>
void foo (DC val)
{
static DC vals[8];
}
int main ()
{
foo(3);
}