C++ Logo

std-discussion

Advanced search

Re: Global array of objects over multiple files

From: Thiago Macieira <thiago_at_[hidden]>
Date: Thu, 17 Oct 2024 11:05:17 -0700
On Thursday 17 October 2024 10:35:38 GMT-7 Lénárd Szolnoki via Std-Discussion
wrote:
> What happens when dynamic loading gets involved?

It's a per shared-object/DLL array. You can't merge multiple arrays from
different objects, because they would never be contiguous in memory.

For all the uses I currently know of, this suffices. Explaining it in
standardese is a bit tricky, though.

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

Received on 2024-10-17 18:05:24