Boost logo

Boost :

From: Yuriy Koblents-Mishke (yurakm_at_[hidden])
Date: 2007-01-30 14:02:48


On 1/30/07, Arkadiy Vertleyb <vertleyb_at_[hidden]> wrote:
>
> "Yuriy Koblents-Mishke" <yurakm_at_[hidden]> wrote
>
> > May I suggest, please, to add the respective #include(s) to the code
> > snippets in your tutorials? Not a big problem, but at 2:30am it took
> maybe
> > 15-20 minutes to find that a simple
> >
> > #include <boost/typeof/typeof.hpp>
> >
> > is what was needed.
>
> Maybe it's enough to just mention in the beginning that this file needs to
> be included?

Yes, it will be enough. Easier to maintain, not much longer to read...

> On the other hand, the namespace around every example
> >
> > namespace ex1 { // etc
> >
> > only distracts from the substance.
>
> Actually it's written this way so that the whole tutorial could be in a
> single file. Also, at some point, it helps to illustrate the fact that
> the
> registration has to be done from the context of the global namespace.

Gotcha!

Sincerely,

    Yura.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk