[ConceptGCC] |
ConceptGCC :Addable |
From: Karl Meerbergen (Karl.Meerbergen_at_[hidden])
Date: 2007-03-07 16:37:57
Hi,
The following piece of code compiled with the current SVN version
produces a compilation error. Is this normal behaviour?
Thanks,
Karl
#include <concepts>
struct foo {} ;
namespace std {
concept_map Addable< foo > {
foo operator+( foo const& f, foo const& b ) {
return f ;
}
}
}
int main() {
foo f, b ;
f + b ;
}
p.cpp: In function 'int main()':
p.cpp:17: error: no match for 'operator+' in 'f + b'