
On 1/30/07, Arkadiy Vertleyb <vertleyb@hotmail.com> wrote:
"Yuriy Koblents-Mishke" <yurakm@gmail.com> 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.