|
Boost : |
Subject: Re: [boost] [review] Review of Outcome (starts Fri-19-May)
From: Peter Dimov (lists_at_[hidden])
Date: 2017-05-19 17:16:16
Niall Douglas wrote:
> It's an atomic fence to the *compiler*, not to the CPU. It can't be
> demonstrated online easily. You need sequences of operations to be folded
> by an optimiser where the fence inhibits folding.
Or, stated differently, your function just inhibits inlining
std::system_category() into user code.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk