Boost logo

Boost :

From: Gennaro Prota (gennaro_prota_at_[hidden])
Date: 2003-01-12 07:22:17


On Sat, 11 Jan 2003 18:26:54 -0800, "Paul Mensonides"
<pmenso57_at_[hidden]> wrote:

>Yeah. However, this doesn't really apply to what I'm talking about with:
>
>enum { a, b, c };
>
>Yes, for linkage purposes 'enum xyz { }' is equivalent to 'typedef enum { }
>xyz'.

Well, is the enum below unnamed? Is the program legal?

struct A {
   typedef enum { value = 1 } alias;
};

template <typename T>
struct X {

};

int main() {
   X <A::alias> x;
}

Genny.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk