Click here to Skip to main content
15,891,316 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: *cries in C++* Pin
charlieg18-Feb-22 0:11
charlieg18-Feb-22 0:11 
GeneralRe: *cries in C++* Pin
Cpichols17-Feb-22 1:29
Cpichols17-Feb-22 1:29 
GeneralRe: *cries in C++* Pin
JP Reyes17-Feb-22 6:12
JP Reyes17-Feb-22 6:12 
GeneralRe: *cries in C++* Pin
honey the codewitch17-Feb-22 6:30
mvahoney the codewitch17-Feb-22 6:30 
GeneralRe: *cries in C++* Pin
JP Reyes17-Feb-22 6:43
JP Reyes17-Feb-22 6:43 
GeneralRe: *cries in C++* Pin
honey the codewitch17-Feb-22 11:45
mvahoney the codewitch17-Feb-22 11:45 
GeneralRe: *cries in C++* Pin
charlieg17-Feb-22 11:38
charlieg17-Feb-22 11:38 
GeneralRe: *cries in C++* Pin
honey the codewitch17-Feb-22 11:42
mvahoney the codewitch17-Feb-22 11:42 
These days I don't use inheritance that much except for doing compile-time computation tricks.

I usually use templates rather than have strict base classes.

In GFX I expose a "caps" template structure that indicates the capabilities of an object. GFX calls certain methods on that object based on the values in that template structure, so for example, it can determine if the object supports reading, or certain optimized operations. Normally, you'd inherit from a base class to do this, but you can do similar using templates. Code size can get to be in issue depending on what you're doing though, but I like the flexibility.
Real programmers use butterflies

GeneralRe: *cries in C++* Pin
charlieg17-Feb-22 11:48
charlieg17-Feb-22 11:48 
GeneralRe: *cries in C++* Pin
honey the codewitch17-Feb-22 12:04
mvahoney the codewitch17-Feb-22 12:04 
GeneralRe: *cries in C++* Pin
jschell17-Feb-22 11:54
jschell17-Feb-22 11:54 
GeneralRe: *cries in C++* Pin
honey the codewitch17-Feb-22 11:56
mvahoney the codewitch17-Feb-22 11:56 
GeneralRe: *cries in C++* Pin
bmarstella17-Feb-22 16:33
bmarstella17-Feb-22 16:33 
GeneralRe: *cries in C++* Pin
honey the codewitch17-Feb-22 16:45
mvahoney the codewitch17-Feb-22 16:45 
GeneralRe: *cries in C++* Pin
Stefan_Lang19-Feb-22 2:21
Stefan_Lang19-Feb-22 2:21 
GeneralRe: *cries in C++* Pin
honey the codewitch19-Feb-22 4:55
mvahoney the codewitch19-Feb-22 4:55 
GeneralOh boy. I've given myself a challenge now. Pin
OriginalGriff16-Feb-22 1:48
mveOriginalGriff16-Feb-22 1:48 
GeneralRe: Oh boy. I've given myself a challenge now. Pin
honey the codewitch16-Feb-22 1:53
mvahoney the codewitch16-Feb-22 1:53 
GeneralRe: Oh boy. I've given myself a challenge now. Pin
Peter_in_278016-Feb-22 1:58
professionalPeter_in_278016-Feb-22 1:58 
GeneralRe: Oh boy. I've given myself a challenge now. Pin
Dave Kreskowiak16-Feb-22 2:08
mveDave Kreskowiak16-Feb-22 2:08 
GeneralRe: Oh boy. I've given myself a challenge now. Pin
Amarnath S16-Feb-22 2:15
professionalAmarnath S16-Feb-22 2:15 
GeneralRe: Oh boy. I've given myself a challenge now. Pin
Richard MacCutchan16-Feb-22 2:32
mveRichard MacCutchan16-Feb-22 2:32 
GeneralRe: Oh boy. I've given myself a challenge now. Pin
craig robbins MN16-Feb-22 2:59
craig robbins MN16-Feb-22 2:59 
GeneralRe: Oh boy. I've given myself a challenge now. Pin
dan!sh 16-Feb-22 3:06
professional dan!sh 16-Feb-22 3:06 
GeneralRe: Oh boy. I've given myself a challenge now. Pin
PIEBALDconsult16-Feb-22 3:06
mvePIEBALDconsult16-Feb-22 3:06 

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.