Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
You're probably going out of bounds somewhere in your constructor or destructor, no matter how const everything is, if you fuck up the memory allocation everything goes wrong.
-
C++ is usually uncontested as the most difficult major language out there, discounting the joke ones like brainfuck and all of the codegolf languages.
-
@sqlkid To be fair, the worse the language the better the pay because nobody wants to be the guy to fix some 20 year old cobbled together business application
Related Rants
-
xjose97x20Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop. -
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ... -
sam966911
Hats off to this lady .... I would have just flipped the machine

My destructor accidentally modifies some other object wtf !? I made sure to use const keyword to prevent modification and also dynamically allocated data using the new keyword.
rant
const
pointers
c++