Click here to Skip to main content
15,910,234 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
PinnedHOW TO ANSWER A QUESTION PinPopular
Chris Maunder12-Jul-09 22:37
cofounderChris Maunder12-Jul-09 22:37 
PinnedHOW TO ASK A QUESTION PinPopular
Chris Maunder12-Feb-09 17:19
cofounderChris Maunder12-Feb-09 17:19 
QuestionPassing a class (pointer) to library - Linux Pin
Salvatore Terress31-May-24 9:00
Salvatore Terress31-May-24 9:00 
AnswerRe: Passing a class (pointer) to library - Linux Pin
k505431-May-24 10:25
mvek505431-May-24 10:25 
GeneralRe: Passing a class (pointer) to library - Linux Pin
Salvatore Terress31-May-24 14:12
Salvatore Terress31-May-24 14:12 
GeneralRe: Passing a class (pointer) to library - Linux Pin
Richard MacCutchan1-Jun-24 1:47
mveRichard MacCutchan1-Jun-24 1:47 
QuestionHow C++ manage memory in event driven system ? Pin
Salvatore Terress30-May-24 4:44
Salvatore Terress30-May-24 4:44 
AnswerRe: How C++ manage memory in event driven system ? Pin
Richard MacCutchan30-May-24 5:47
mveRichard MacCutchan30-May-24 5:47 
AnswerRe: How C++ manage memory in event driven system ? Pin
k505430-May-24 5:58
mvek505430-May-24 5:58 
GeneralRe: How C++ manage memory in event driven system ? Pin
Salvatore Terress30-May-24 7:09
Salvatore Terress30-May-24 7:09 
GeneralRe: How C++ manage memory in event driven system ? Pin
Richard MacCutchan30-May-24 9:09
mveRichard MacCutchan30-May-24 9:09 
GeneralRe: How C++ manage memory in event driven system ? Pin
k505430-May-24 9:47
mvek505430-May-24 9:47 
GeneralRe: How C++ manage memory in event driven system ? Pin
Salvatore Terress30-May-24 12:54
Salvatore Terress30-May-24 12:54 
QuestionUPDATE CLOSED error: declaration of anonymous class must be a definition Pin
Salvatore Terress25-May-24 5:49
Salvatore Terress25-May-24 5:49 
AnswerRe: error: declaration of anonymous class must be a definition Pin
k505425-May-24 6:25
mvek505425-May-24 6:25 
GeneralRe: error: declaration of anonymous class must be a definition Pin
Salvatore Terress25-May-24 8:26
Salvatore Terress25-May-24 8:26 
GeneralRe: error: declaration of anonymous class must be a definition Pin
Richard MacCutchan25-May-24 21:21
mveRichard MacCutchan25-May-24 21:21 
GeneralRe: error: declaration of anonymous class must be a definition Pin
k505427-May-24 5:26
mvek505427-May-24 5:26 
AnswerRe: error: declaration of anonymous class must be a definition Pin
RedDk26-May-24 9:42
RedDk26-May-24 9:42 
GeneralRe: error: declaration of anonymous class must be a definition Pin
Salvatore Terress28-May-24 3:52
Salvatore Terress28-May-24 3:52 
QuestionUPDATE REPOST BUMP How to construct / build / interpret regular expression ? Pin
Salvatore Terress24-May-24 6:31
Salvatore Terress24-May-24 6:31 
AnswerRe: How to construct / build / interpret regular expression ? Pin
Richard MacCutchan25-May-24 4:28
mveRichard MacCutchan25-May-24 4:28 
AnswerRe: SOLVED How to construct / build / interpret regular expression ? Pin
jschell27-May-24 12:18
jschell27-May-24 12:18 
GeneralRe: SOLVED How to construct / build / interpret regular expression ? Pin
Salvatore Terress28-May-24 4:21
Salvatore Terress28-May-24 4:21 
QuestionOkay, real C++ question - who makes use of the auto keyword? Pin
charlieg19-May-24 1:29
charlieg19-May-24 1:29 
I'm trying to straighten out some pointer "arithmetic" in some existing code. The expressions themselves are overly ambiguous to say the least. In part of my readings, I've come across the "auto" keyword where the compiler deduces what type I need. At least that's what I got from all of the verbiage.

This seems a) dangerous and b) adds another level of mental indirection to what you are trying to accomplish. To me, software needs to be very clear and explicit in what data you are working with and what you intend to do with it. A lot of the "here is how auto will help you" descriptions justify it by saving typing when trying to make use of other classes, templates and the like. It feels like the C++ committee came up with a feature A then added feature B to make using A easier. I'm now doing battle with lambda expressions - another story.

So, in your code - do you make extensive use of auto, and how does it help you?
Charlie Gilley

“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

Has never been more appropriate.

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.