Indiana Unversity logo[ConceptGCC]

ConceptGCC :

Re: Need some help -- can't find the error in this code.

From: Karl Meerbergen (Karl.Meerbergen_at_[hidden])
Date: 2007-09-19 11:10:31


Shouldn't you have
void T::call() in your concept?
This works with my installation.

Karl

Daniel Lincke wrote:

>Hi,
>
>things are even worse :( ...
>
>look at this code:
>
>#include <concepts>
>
>#include <stdlib.h>
>#include <stdio.h> // file I/O streams
>#include <iostream>
>
>using namespace std;
>
>concept TEST<class T> {
>void call();
>};
>
>template<class T>
>requires TEST<T>, DefaultConstructible<T>
>void test () {
>T t;
>t.call();
>}
>
>int main (int argc, char *argv[]) {
>}
>
>
>leading to the error:
>/opt/conceptgcc-4.3/bin/conceptg++ -c -o main.o main.cpp
>main.cpp: In function ‘void test()’:
>main.cpp:19: error: ‘struct T’ has no member named ‘call’
>make: *** [main.o] Fehler 1
>
>:confused:
>No idea what's going wrong here ...
>(Might this be a problem with the installation of conceptgcc?)
>
>Best, dl
>_______________________________________________
>ConceptGCC mailing list
>ConceptGCC_at_[hidden]
>http://www.osl.iu.edu/mailman/listinfo.cgi/conceptgcc
>
>