
From: David Abrahams <dave@boost-consulting.com>
Rob Stewart <stewart@sig.com> writes:
From: David Abrahams <dave@boost-consulting.com>
Rob Stewart <stewart@sig.com> 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@sig.com Software Engineer http://www.sig.com Susquehanna International Group, LLP using std::disclaimer;