Q&A: how to make it work with << and >>...

... given this Instrument class?

class Instrument {
  friend ostream& operator<<(ostream&, const Instrument&);

ostream& operator<<(ostream& s, const Instrument& i)
  s << i.description;
  return s;

Category: C++ Quant > C++

1 comment:

  1. Anonymous5:51 PM

    This blog really makes the quant career sound pretty unattractive. I can say this, as I can afford to be my own quant/cramer rolled into one. It's unfortunate that more don't have this privelage, as it might clean things up on wall st a bit.

    Having worked in NorCal and spent a bit of time as a working stiff here in NYC, there are clear cultural differences that make the east coast a "house of pain" IMO.

    You could translate the material here in stream operators into sales and marketing jargon, and the material would look pretty much the same as I've seen on career sites for the math is hard crowd.

    I'm not sure what all the buzz is about.