Boost logo

Boost :

From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2005-01-23 20:15:49


Daniel James writes:
> Here's a simple example of code which triggers this bug:
>
> namespace y1
> {
> struct y2 {};
> }
>
> struct x1
> {
> void x2(y1::y2);
> };
>
> // This line prevents the Internal Compiler Error:
> // class dummy { void func(); };
>
> template <int N> struct z {};

A somewhat more convenient workaround is this:

    typedef int int_t;

    ...
    template <int_t N> struct z {};

--
Aleksey Gurtovoy
MetaCommunications Engineering

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