Transform assertion into optimization hints

Marc Glisse marc.glisse@inria.fr
Mon Sep 17 21:22:00 GMT 2018


On Mon, 17 Sep 2018, Moritz Klammler wrote:

> One potential problem I can see is that the expansion of the new macro
> is not a void expression as (if I am not mistaken) mandated by the
> standard (§ 7.2.1.1 N1570) meaning that (admittedly questionable) code
> like the following won't compile.
>
> int n = (assert(1), 42);

François is not changing the standard 'assert' macro, only some internal 
macro used only inside libstdc++.

-- 
Marc Glisse



More information about the Libstdc++ mailing list