Boost logo

Boost :

Subject: Re: [boost] [Safe Numerics] Bitwise ops
From: Peter Dimov (lists_at_[hidden])
Date: 2017-03-12 13:20:01


John Maddock wrote:

> * It would be nice to be able to alter the behaviour via a static_assert -
> is it possible for the error policy to static assert on a bitwise op on a
> signed type - so that all bitwise ops on signed types become compiler
> errors?

Isn't this what trap_exception is supposed to do?


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