This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/30331] a const member function can call a non_const member function without const_cast



------- Comment #5 from gdr at integrable-solutions dot net  2006-12-30 17:51 -------
Subject: Re:  a const member function can call a non_const member function
without const_cast

"hongleij at 126 dot com" <gcc-bugzilla@gcc.gnu.org> writes:

| the question is : if a const member function can call a non_const member
| function
| without const_cast,

[...]

| this program is inspired from the book <Effective C++>(third edition)
| Item3: use const whenever possible

This question is better asked and answered on C++ newsgroup.

-- Gaby


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30331


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]