[ConceptGCC] |
ConceptGCC :error: 'Foo' has no copy constructor |
From: Sumant Tambe (sutambe_at_[hidden])
Date: 2008-12-09 11:20:31
Hi,
I'm getting the an error saying 'KindLit<Kind>' has no copy constructor
in the attached simple program. As a result of the error, apply function
also fails to compile. If I comment out the empty copy-constructor, the
program compiles. Is there something wrong I'm doing? I'm using
ConceptGCC 4.3.0 Alpha 7.
Thanks for any help you might provide.
Sumant.
#include "concepts.h"
auto concept ElementConcept <typename T>
{ };
template <class Kind>
requires ElementConcept<Kind>
class KindLit
{
public:
KindLit(KindLit const & k) {}
KindLit apply () { KindLit k; return k; }
};
int main (void)
{
}