Click here to Skip to main content
15,797,960 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: overzealous protection rules Pin
Dave Schumann12-Jul-06 6:04
Dave Schumann12-Jul-06 6:04 
AnswerRe: overzealous protection rules Pin
Maximilien12-Jul-06 5:59
Maximilien12-Jul-06 5:59 
AnswerRe: overzealous protection rules Pin
David Crow12-Jul-06 6:10
David Crow12-Jul-06 6:10 
GeneralRe: overzealous protection rules Pin
toxcct12-Jul-06 6:06
toxcct12-Jul-06 6:06 
GeneralRe: overzealous protection rules Pin
Dave Schumann12-Jul-06 6:17
Dave Schumann12-Jul-06 6:17 
GeneralRe: overzealous protection rules Pin
David Crow12-Jul-06 6:27
David Crow12-Jul-06 6:27 
GeneralRe: overzealous protection rules Pin
Dave Schumann12-Jul-06 6:33
Dave Schumann12-Jul-06 6:33 
GeneralRe: overzealous protection rules Pin
Zac Howland12-Jul-06 6:50
Zac Howland12-Jul-06 6:50 
Dave Schumann wrote:
I declared "protected:" for a reason, not because I like having things not compile. This is a toy version of a much larger problem. I can't stand posters who post 20 pages of code so I figured I'd boil the issue down. In fact in my case the issue is accessing a *function*...and there's virtual stuff and blah blah blah. Now you're getting bored, appropriately. None of that is relevant to the compiler error which I can't understand.


Since you aren't giving the details of your larger problem (understandably), I will only mention that almost always, protected should be replaced by private. See Effective C++ by Scott Meyers for details.

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac
GeneralRe: overzealous protection rules Pin
toxcct12-Jul-06 7:38
toxcct12-Jul-06 7:38 
GeneralRe: overzealous protection rules Pin
Zac Howland12-Jul-06 8:05
Zac Howland12-Jul-06 8:05 
QuestionRe: overzealous protection rules Pin
David Crow12-Jul-06 7:30
David Crow12-Jul-06 7:30 
GeneralRe: overzealous protection rules Pin
Dave Schumann12-Jul-06 6:07
Dave Schumann12-Jul-06 6:07 
GeneralRe: overzealous protection rules Pin
Zac Howland12-Jul-06 7:09
Zac Howland12-Jul-06 7:09 
GeneralRe: overzealous protection rules Pin
Dave Schumann12-Jul-06 7:15
Dave Schumann12-Jul-06 7:15 
GeneralRe: overzealous protection rules Pin
Zac Howland12-Jul-06 7:25
Zac Howland12-Jul-06 7:25 
GeneralRe: overzealous protection rules [modified] Pin
Dave Schumann12-Jul-06 7:48
Dave Schumann12-Jul-06 7:48 
GeneralRe: overzealous protection rules Pin
Zac Howland12-Jul-06 8:05
Zac Howland12-Jul-06 8:05 
AnswerRe: overzealous protection rules Pin
Zac Howland12-Jul-06 6:45
Zac Howland12-Jul-06 6:45 
GeneralRe: overzealous protection rules Pin
Dave Schumann12-Jul-06 7:00
Dave Schumann12-Jul-06 7:00 
GeneralRe: overzealous protection rules Pin
Zac Howland12-Jul-06 7:21
Zac Howland12-Jul-06 7:21 
GeneralRe: overzealous protection rules Pin
Dave Schumann12-Jul-06 7:50
Dave Schumann12-Jul-06 7:50 
GeneralRe: overzealous protection rules Pin
Zac Howland12-Jul-06 8:08
Zac Howland12-Jul-06 8:08 
GeneralRe: overzealous protection rules Pin
Dave Schumann12-Jul-06 7:59
Dave Schumann12-Jul-06 7:59 
GeneralRe: overzealous protection rules Pin
Zac Howland12-Jul-06 8:14
Zac Howland12-Jul-06 8:14 
Answersolution Pin
Dave Schumann12-Jul-06 7:04
Dave Schumann12-Jul-06 7:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.