Skip to main content
gamedev.net
🔒 Locked

const question

Started by jharkey Dec 15, 2001 at 12:08 PM 1 replies 300+ views
Original Post
jharkey
jharkey
hello, i was wondering what this means. void SomeFunction(int i) const; what is the const for, i understand this void SomeFunction(const int& i); i get that means that eventhough i is passed by reference, it doesnt allow you to modify it. but what is the first one?
jharkey
jharkey
thanks, that makes sense.

Topic Locked

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

Sign in to reply to this topic.