[ConceptGCC] |
ConceptGCC :Re: Inline requirements to define associated types |
From: Douglas Gregor (doug.gregor_at_[hidden])
Date: 2007-02-02 10:19:22
On Feb 2, 2007, at 4:04 AM, Michelangelo Riccobene wrote:
> but i am unable to compile it with ConceptGCC. With:
>
> #include <concepts>
> #include <iterator>
>
> auto concept Container<typename X>
> {
> std::InputIterator iterator = X::iterator; // line 6
>
> iterator X::begin();
> iterator X::end();
> }
>
> ConceptGCC report:
>
> test.cpp:6: error: expected type-specifier
> test.cpp:6: error: expected `;'
> [snip]
> Is this a missing feature of ConceptGCC or I am wrong?
Missing feature. The following does work:
> auto concept Container<typename X>
> {
> std::InputIterator iterator;
>
> iterator X::begin();
> iterator X::end();
> }
I'll try to get this fixed in the near future.
Cheers,
Doug