top | item 41418978

(no title)

gobblegobble2 | 1 year ago

> Notably I thought the issue would be the throwing of `std::bad_alloc`, but the new version still implements std::allocator, and throws bad_alloc.

The new version uses `FMT_THROW` macro instead of a bare throw. The article says "One obvious problem is exceptions and those can be disabled via FMT_THROW, e.g. by defining it to abort". If you check the `g++` invocation, that's exactly what the author does.

discuss

order

masklinn|1 year ago

The author also compiles with `-fno-exceptions` which should already have the same behaviour.