[ConceptGCC] |
ConceptGCC :Re: Associated values problem |
From: Doug Gregor (dgregor_at_[hidden])
Date: 2007-04-25 13:06:00
On Apr 20, 2007, at 4:21 PM, Walter E Brown wrote:
> The code below, inserted into and toward the bottom of the <concepts>
> header, causes conceptgcc-4.3.0-alpha-6 to issue the following
> diagnostics:
>
> concepts:312: error: type 'G' is not derived from type
> std::UniformRandomNumberGenerator<G>'
> concepts:313: error: type 'G' is not derived from type
> 'std::UniformRandomNumberGenerator<G>'
> concepts:314: error: incomplete type 'G' used in nested name specifier
> concepts:314: error: incomplete type 'G' used in nested name specifier
> concepts:314: error: template argument 1 is invalid
>
> It seems as if the compiler does not yet understand associated values,
> right?
Right. And, actually, associated values were removed from the
concepts proposal at the Google meeting. Instead, one should use
associated functions marked "constexpr". Unfortunately, there is no
constexpr implementation for GCC, so we don't have support for that
in ConceptGCC, either :(
- Doug