Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2006-04-01 12:53:37


"Paul A Bristow" <pbristow_at_[hidden]> 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

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