Boost logo

Boost Users :

From: gast128 (gast128_at_[hidden])
Date: 2007-07-25 12:16:20


Graham Reitz <graham.cpp <at> gmail.com> writes:

>
> I have been finding that the boost::tuple library is so convenient that I am
concerned I may be overusing it.  For example, in situations where I might use
a struct I am tend to prefer a tuple.  Where is a good place to draw the line
in situations like this? Or is this the intent to use it as often as possible?
> Thanks much,Graham

I tend to use it for q&&d passing of bundled properties. If this is more used,
I make a full blown struct out of it.

Besides that it is a great library, I can think of three drawbacks:
- hard to see its contents in a debugger (using Visual Studio)
- bind expression with tuple becomes a nightmare
- default initialising of its members is m_member() (while sometimes we
reserve -1 for uninitialised)

Wkr,
me


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net