Boost logo

Boost :

From: Sean Huang (huangsean_at_[hidden])
Date: 2005-09-28 17:11:37

"Reece Dunn" <msclrhd_at_[hidden]> wrote in message
> What about:
> static const unsigned char lookup_table[] = { ... };
> The static tells the compiler that this is a global constant and not just
> related to this call of the function. The const tells the compiler that
> the
> data isn't (shouldn't be) modified.
> I think this will work on all compilers. (Compare this with declaring
> class-based constants using "static const ...").
> - Reece
Could you please elaborate this for a bit? What is the issue with using a
const static member?



Boost list run by bdawes at, gregod at, cpdaniel at, john at