Boost logo

Boost :

Subject: Re: [boost] Header Inclusion practices
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2017-04-11 18:08:44


AMDG

On 04/11/2017 11:55 AM, Robert Ramey via Boost wrote:
>
> // example using he safe numerics library
>
> #include <iostream>
> #include <limits>
> #include <boost/integer.hpp>
>
> #include "../include/cpp.hpp"
> #include "../include/exception.hpp"
> #include "../include/safe_integer.hpp"
> #include "../include/safe_range.hpp"
>
> This has raised consternation in some quarters - but I don't see
> anything wrong with it. It basically means that only the <boost
> libraries are depended on the whole b2 business. I didn't want the
> incubator version of the the safe numeric library to depend on the
> library having been accepted into boost have have b2 run. Also I don't
> like adding the library to boost - and having to change all the headers.
> What if someone want's to run the tests/examples outside of the boost
> tree.
>

  My opinion on this specific case is that examples should
match what a user would expect to write. i.e. They
should not rely on the fact that the example code is
inside the safe_numerics library. For test code, I
don't really care how you write it as long as it works.

> As far as I know this question has never been asked before and I'm
> curious to know what others might have to say about this.
>

In Christ,
Steven Watanabe


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