Index | Thread | Search

From:
Jeremie Courreges-Anglas <jca@wxcvbn.org>
Subject:
Re: make bonnie++ compile with modern gcc
To:
ports@openbsd.org
Date:
Mon, 17 Nov 2025 17:30:39 +0100

Download raw body.

Thread
On Mon, Nov 17, 2025 at 03:31:54PM +0100, Claudio Jeker wrote:
> gcc added something as data into their std namespace of libstdc++ and this
> code tripps over that. This is what other distros did, simply rename data
> to something else.

I find it a bit misleading to rename "data" to "stddata" in order to
avoid a name clash with "std::data".  You could probably just use
"::data" to use the default namespace and avoid the clash due to
"using namespace std;" (compile-tested).

Unless there are good reasons not to do that, but I'm no C++ lawyer...

Anyway, whatever name you'll be using, the fix makes sense.

-- 
jca