Jump to content

June 2013 »

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829
30      

Recent Comments

View more

swiftcoding

2: Adsense

Fun with commas

This thread over at GameDev got me thinking, “can one assign Python-like tuples in C++?”

I don’t want to pollute the thread in For Beginners with that discussion, but the answer is yes, even without C++11 initialiser lists:

#include <iostream>struct A { A &operator = (int i) { std::cout << "A = " << i << s...