AMDG On 04/11/2017 11:55 AM, Robert Ramey via Boost wrote:
// example using he safe numerics library
#include <iostream> #include <limits> #include
#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
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