Click here to Skip to main content
15,885,782 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.

 
JokeRe: I feel lucky ... Pin
Sander Rossel5-Apr-21 3:46
professionalSander Rossel5-Apr-21 3:46 
GeneralRe: I feel lucky ... Pin
Daniel Pfeffer5-Apr-21 4:12
professionalDaniel Pfeffer5-Apr-21 4:12 
GeneralRe: I feel lucky ... Pin
W Balboos, GHB5-Apr-21 4:17
W Balboos, GHB5-Apr-21 4:17 
GeneralRe: I feel lucky ... Pin
Sander Rossel5-Apr-21 5:30
professionalSander Rossel5-Apr-21 5:30 
GeneralRe: I feel lucky ... Pin
obermd5-Apr-21 4:30
obermd5-Apr-21 4:30 
GeneralRe: I feel lucky ... Pin
peterkmx5-Apr-21 7:07
professionalpeterkmx5-Apr-21 7:07 
GeneralRe: I feel lucky ... Pin
Sander Rossel5-Apr-21 22:05
professionalSander Rossel5-Apr-21 22:05 
RantI love C++, I hate C++ Pin
honey the codewitch5-Apr-21 1:53
mvahoney the codewitch5-Apr-21 1:53 
*headdesk* *headdesk* *headdesk*

This code should compile but it doesn't
C++
// a 1-bit monochrome pixel
using mono1 = pixel<
    channel_traits<channel_name::L,1> // 1 bit luminosity
>;
mono1 m=color<mono1>::White;


I spent the last two weeks working on a graphics library, only to find out after all is said and done that part of it doesn't work correctly.

None of this is supposed to generate code that executes at run time - except a single assignment from the const value 1, but it won't initialize

The problem is in order to make it work correctly, I need to redesign a significant portion of it.

All of this could have been avoided if the C++ compiler would have thrown an error on my constexpr marked routines like it should have. I know why it didn't - because the offending bits were in a template function which wasn't being instantiated - but still, it should have, because I say so. Mad | :mad:
Real programmers use butterflies


modified 5-Apr-21 8:08am.

GeneralRe: I love C++, I hate C++ Pin
Mladen Janković5-Apr-21 1:55
Mladen Janković5-Apr-21 1:55 
GeneralRe: I love C++, I hate C++ Pin
honey the codewitch5-Apr-21 2:10
mvahoney the codewitch5-Apr-21 2:10 
GeneralRe: I love C++, I hate C++ Pin
Greg Utas5-Apr-21 2:46
professionalGreg Utas5-Apr-21 2:46 
GeneralRe: I love C++, I hate C++ Pin
honey the codewitch5-Apr-21 3:20
mvahoney the codewitch5-Apr-21 3:20 
GeneralRe: I love C++, I hate C++ Pin
Greg Utas5-Apr-21 3:56
professionalGreg Utas5-Apr-21 3:56 
GeneralRe: I love C++, I hate C++ Pin
Mladen Janković5-Apr-21 5:27
Mladen Janković5-Apr-21 5:27 
GeneralRe: I love C++, I hate C++ Pin
Greg Utas5-Apr-21 2:03
professionalGreg Utas5-Apr-21 2:03 
GeneralRe: I love C++, I hate C++ Pin
honey the codewitch5-Apr-21 2:19
mvahoney the codewitch5-Apr-21 2:19 
GeneralRe: I love C++, I hate C++ Pin
Daniel Pfeffer5-Apr-21 2:18
professionalDaniel Pfeffer5-Apr-21 2:18 
GeneralRe: I love C++, I hate C++ Pin
honey the codewitch5-Apr-21 2:21
mvahoney the codewitch5-Apr-21 2:21 
JokeRe: I love C++, I hate C++ Pin
Daniel Pfeffer5-Apr-21 2:28
professionalDaniel Pfeffer5-Apr-21 2:28 
GeneralRe: I love C++, I hate C++ Pin
honey the codewitch5-Apr-21 3:21
mvahoney the codewitch5-Apr-21 3:21 
GeneralRe: I love C++, I hate C++ Pin
Sander Rossel5-Apr-21 3:39
professionalSander Rossel5-Apr-21 3:39 
GeneralRe: I love C++, I hate C++ Pin
honey the codewitch5-Apr-21 3:48
mvahoney the codewitch5-Apr-21 3:48 
GeneralRe: I love C++, I hate C++ Pin
Rick York5-Apr-21 5:34
mveRick York5-Apr-21 5:34 
GeneralRe: I love C++, I hate C++ Pin
honey the codewitch5-Apr-21 5:40
mvahoney the codewitch5-Apr-21 5:40 
GeneralRe: I love C++, I hate C++ Pin
Rick York5-Apr-21 7:11
mveRick York5-Apr-21 7:11 

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.