BCB Mailing List

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[BCB] FW: Compiler bug with BCC and Exceptions?





Doug,

Compilers have known to do funny things without semicolons to
'terminate' scope, so, just a suggestion:

> // This class is about as simple as they get.
> class X
> {
> public:
>     // Note if you comment this out, and depend on the default
>     // compiler generated constructor, everything works.  However,
>     // with some more complicated classes, you can't depend on that
>     // behavior.
>     X()
>     {
                ;               <<<<<<<<<<------ Insert this semicolon, then retry!
>     }
>
> };
>

Peter


W Komornicki's Home Page | Main Index | Thread Index