C++ Logo

std-discussion

Advanced search

Re: Global array of objects over multiple files

From: Thiago Macieira <thiago_at_[hidden]>
Date: Fri, 18 Oct 2024 08:33:41 -0700
On Friday 18 October 2024 02:13:17 GMT-7 Marcin Jaczewski via Std-Discussion
wrote:
> It needs to be `array`?

Yes.

> If we allow linked list each position can "self append" to global list:

You can do that now with global constructors. There's no benefit in making this
a language construct because it doesn't have an extra benefit over what the
manual code allowed since before C++98 can do.

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

Received on 2024-10-18 15:33:49