Original Post
I want to write a wrapper so that I can do this:
class A{float b1, b2;}; A a; a.b1=1f;a.b2=2f;
std::string s; s << a; or something similarly easy and readable, so that it is the equivalent of
char buf[100];sprintf(buf, "A=(%0.1f %0.1f)",a.b1,a.b2);Operators don't matter (I could care less if its << or +). How might I accomplish this? Thanks. Dustin