Jump to content

  • Log In with Google      Sign In   
  • Create Account


swiftcoding



Fun with commas

  Posted by swiftcoder, 14 June 2013 · 833 views

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...





June 2013 »

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