Boost logo

Boost :

From: Rob Stewart (stewart_at_[hidden])
Date: 2005-09-21 11:49:54


From: David Abrahams <dave_at_[hidden]>
> Rob Stewart <stewart_at_[hidden]> writes:
> > From: David Abrahams <dave_at_[hidden]>
> >> Rob Stewart <stewart_at_[hidden]> writes:
> >
> > Nevertheless, won't the problem only occur for non-conforming
> > compilers and only when the definition of
> > boost::range::begin(foot const &) is in a separate header
>
> No, it has nothing to do with *definitions* and everything to do with
> declarations. That function could be defined in a source file.

D'oh, sorry.

> > (provided the author/maintainer of foo follows the prescribed
> > course when it's in the same header)?
>
> No, it will occur anytime boost/range/begin.hpp is included before
> whatever/foo.h.

I just looked at boost/range/begin.hpp and I see what you mean.

-- 
Rob Stewart                           stewart_at_[hidden]
Software Engineer                     http://www.sig.com
Susquehanna International Group, LLP  using std::disclaimer;

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