Click here to Skip to main content
15,888,610 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
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 
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 
I just love templates, personally. I'm not as big a fan of the STL, but I don't have much occasion to use it since I often target the Arduino platform with my code, and its STL implementation is only partial on some of its targets. Part of the joy of coding C++ for me is seeing what I can schlep from runtime to compile time in order to increase performance and maintain flexibility.

I have a pixel template class that allows you to declare individual color channels and the bit depth of each, and compose a pixel with as many channels as you want, up to the machine's word size.

It will then allow you to modify the individual channels so you can set the red channel of an RGB pixel, or the U channel of a Y'UV pixel, and it will recompute the overall value.

If you use constants it will compute all of it at compile time, including getting the compiler to bit shift arbitrary bits an arbitrary direction.
Real programmers use butterflies

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 
GeneralRe: Oh boy. I've given myself a challenge now. Pin
kmoorevs16-Feb-22 3:50
kmoorevs16-Feb-22 3:50 
GeneralRe: Oh boy. I've given myself a challenge now. Pin
Matias Lopez16-Feb-22 4:05
Matias Lopez16-Feb-22 4:05 

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.