Skip to main content
GameDev.net gamedev.net
🔒 Locked

const class A { ... }

Started by Chris Hare Jan 22, 2004 at 8:27 PM 1 replies 850+ views
Original Post
Chris Hare
Chris Hare
Just a quicky... What does the const in
const class A
{
    ...
};
 
do?
blah blah blah.
Sneftel
Sneftel
It causes a compilation error.


"Sneftel is correct, if rather vulgar." --Flarelocke
Chris Hare
Chris Hare
Right.

I was thinking of



const class { ... } inst;



, a const instance of a unnamed type. Thanks for jogging my memory.


blah blah blah.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.