Subject: Re: [boost] "peer reviewed" - Rights and responsibilities of maintainers
From: Peter Dimov (lists_at_[hidden])
Date: 2018-10-17 15:52:46
Robert Ramey wrote:
> When I looked at the test my attention was immediately drawn to the
> const char* impossible = "impossible";
> return impossible !=
> I memory serves me, get_key() will return the address of string of
> characters inside the the address space of the DLL. This address is
> compared to the address of "impossible" which is an address inside the
> address space of the calling mainline application. I could not and cannot
> understand what is being tested here.
It's a dummy comparison whose only purpose is to make use of the return
value to prevent the optimizer from removing the call entirely.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk