
1 Apr
2006
1 Apr
'06
5:53 p.m.
"Paul A Bristow" <pbristow@hetp.u-net.com> writes:
I have been wondering if there is a preferred order of include files?
Should I write (for example):
#include <iostream> #include <boost/test/unit_test.hpp>
or
#include <boost/test/unit_test.hpp> #include <iostream>
Or does it not matter?
I try to choose an order that will expose headers that fail to #include all the headers on which they depend. That means standard headers always come after boost headers. -- Dave Abrahams Boost Consulting www.boost-consulting.com