C++ Logo

std-discussion

Advanced search

Re: Global array of objects over multiple files

From: Thiago Macieira <thiago_at_[hidden]>
Date: Sat, 19 Oct 2024 10:10:53 -0700
On Saturday 19 October 2024 09:56:11 GMT-7 Federico Kircheis via Std-
Discussion wrote:
> Dynamic kinking already breaks multiple guarantees from the standard; for
> example that function pointers are always valid, and many things that have
> to do with global objects, I personally do not see why this array should be
> treated differently

None of that is true for simple C++ code. In order for any of it to happen,
you must have used some non-standard feature, such as an __attribute__.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel DCAI Platform & System Engineering

Received on 2024-10-19 17:11:00