art blog(derogatory)
Mike Driver
Peter Solarz

⁂
occasionally subtle

No title available
let's talk about Bridgerton tea, my ask is open

Discoholic 🪩
$LAYYYTER
2025 on Tumblr: Trends That Defined the Year
🪼
ojovivo
sheepfilms
dirt enthusiast

JBB: An Artblog!

#extradirty

if i look back, i am lost
Cosmic Funnies
Alisa U Zemlji Chuda
No title available
seen from Brazil
seen from Jordan
seen from Canada

seen from Japan

seen from Australia

seen from United Kingdom

seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from Spain

seen from United States

seen from United States

seen from United States
seen from United States
seen from United States

seen from Germany
@luchiangrigore
RAIIght
I'm officially coining the term RAIIght
As in - "Don't use raw pointers, use smart pointers - it's the RAIIght thing to do."
On the chat: http://chat.stackoverflow.com/transcript/message/5894826#5894826
First answer: http://stackoverflow.com/a/13016719/673730
FIFA feature ideas
Cristiano Ronaldo changes hairstyle at half-time.
New career mode - actor.
New Chelsea-exclusive formation - 9-0-1
Disable shooting with Barcelona unless they complete 50 passes beforehand.
Impossible to score penalty with Robben.
Decrease Ronaldo's stats by 20 points in important matches.
If you attempt to buy either Messi, Xavi or Iniesta, you must buy all of them.
AC Milan can only sign players over the age of 35.
Special goal celebration for Balotelli
Cache, thou are a strange mistress
Assume two matrices, one of size 512x512, the other of size 513x513. And say you want to transpose them. Which will be faster?
If you guessed the second... you're right. Question and answer here.
Prime number computation at compile-time
Nothing fancy, just a template that prints out prime numbers. Can be improved, it's just a proof of concept. - http://ideone.com/svhwB
Automatically call a method when a class is extended.
Related to this question - http://stackoverflow.com/questions/10332725/how-to-automatically-register-a-class-on-creation/10333643#10333643
This is how you'd force a call to a function when a class is extended:
template<class T> struct Animal { Animal() { reg; //force specialization } virtual std::string name() = 0; static bool reg; static bool init() { T t; AnimalManager::registerAnimal(t.name()); return true; } }; template<class T> bool Animal<T>::reg = Animal<T>::init(); struct Tiger : Animal<Tiger> { virtual std::string name() { return "Tiger"; } };
Using unnamed parameter in a function.
Here's a little hack to use a function's unnamed parameter.
http://stackoverflow.com/questions/8855922/function-arguments/8855955#8855955
Not platform independent though.
Passing a temporary object as parameter.
If you know what return value optimization (RVO) is, this might not surprise you. Apparently, the compiler is free to optimize out the copy constructor if you pass a temporary object as a function parameter, much like the copy constructor is eluded when an object is returned from the function.
This is the link to the question.