Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Isnt calling a function from other TU odr-using it?

[DiscordArchive] Isnt calling a function from other TU odr-using it?

[DiscordArchive] Isnt calling a function from other TU odr-using it?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
09-11-2022, 06:22 PM
#1
Archived author: Sovak • Posted: 2022-09-11T18:22:02.980000+00:00
Original source

Isnt calling a function from other TU odr-using it?
rektbyfaith
09-11-2022, 06:22 PM #1

Archived author: Sovak • Posted: 2022-09-11T18:22:02.980000+00:00
Original source

Isnt calling a function from other TU odr-using it?

rektbyfaith
Administrator
0
09-11-2022, 06:22 PM
#2
Archived author: Sovak • Posted: 2022-09-11T18:22:44.689000+00:00
Original source

This is what I had in mind
[Image: unknown.png?ex=690c3eb4&is=690aed34&hm=f...2373db847&]
rektbyfaith
09-11-2022, 06:22 PM #2

Archived author: Sovak • Posted: 2022-09-11T18:22:44.689000+00:00
Original source

This is what I had in mind
[Image: unknown.png?ex=690c3eb4&is=690aed34&hm=f...2373db847&]

rektbyfaith
Administrator
0
09-11-2022, 06:22 PM
#3
Archived author: <o> • Posted: 2022-09-11T18:22:50.399000+00:00
Original source

functions are not variables, and the odr section makes that distinction
rektbyfaith
09-11-2022, 06:22 PM #3

Archived author: <o> • Posted: 2022-09-11T18:22:50.399000+00:00
Original source

functions are not variables, and the odr section makes that distinction

rektbyfaith
Administrator
0
09-11-2022, 06:23 PM
#4
Archived author: <o> • Posted: 2022-09-11T18:23:11.584000+00:00
Original source

but that could be an oversight in the phrasing
rektbyfaith
09-11-2022, 06:23 PM #4

Archived author: <o> • Posted: 2022-09-11T18:23:11.584000+00:00
Original source

but that could be an oversight in the phrasing

rektbyfaith
Administrator
0
09-11-2022, 06:23 PM
#5
Archived author: Sovak • Posted: 2022-09-11T18:23:57.491000+00:00
Original source

it happens before the first odr-use of any variable with static/thread storage duration defined in the same translation unit as the variable to be initialized. If no variable or function is odr-used from a given translation unit, the non-local variables defined in that translation unit may never be initialized
rektbyfaith
09-11-2022, 06:23 PM #5

Archived author: Sovak • Posted: 2022-09-11T18:23:57.491000+00:00
Original source

it happens before the first odr-use of any variable with static/thread storage duration defined in the same translation unit as the variable to be initialized. If no variable or function is odr-used from a given translation unit, the non-local variables defined in that translation unit may never be initialized

rektbyfaith
Administrator
0
09-11-2022, 06:24 PM
#6
Archived author: Sovak • Posted: 2022-09-11T18:24:11.948000+00:00
Original source

In the first sentence they say variable, in the second variable or function
rektbyfaith
09-11-2022, 06:24 PM #6

Archived author: Sovak • Posted: 2022-09-11T18:24:11.948000+00:00
Original source

In the first sentence they say variable, in the second variable or function

rektbyfaith
Administrator
0
09-11-2022, 06:26 PM
#7
Archived author: <o> • Posted: 2022-09-11T18:26:10.208000+00:00
Original source

classic
rektbyfaith
09-11-2022, 06:26 PM #7

Archived author: <o> • Posted: 2022-09-11T18:26:10.208000+00:00
Original source

classic

rektbyfaith
Administrator
0
09-11-2022, 06:26 PM
#8
Archived author: Sovak • Posted: 2022-09-11T18:26:47.571000+00:00
Original source

Imo it must be a function as well, it might reference a static variable
rektbyfaith
09-11-2022, 06:26 PM #8

Archived author: Sovak • Posted: 2022-09-11T18:26:47.571000+00:00
Original source

Imo it must be a function as well, it might reference a static variable

rektbyfaith
Administrator
0
09-11-2022, 06:27 PM
#9
Archived author: <o> • Posted: 2022-09-11T18:27:08.515000+00:00
Original source

yeah, but i think the whole point of that is that you can defer this to when that function actually references the variable
rektbyfaith
09-11-2022, 06:27 PM #9

Archived author: <o> • Posted: 2022-09-11T18:27:08.515000+00:00
Original source

yeah, but i think the whole point of that is that you can defer this to when that function actually references the variable

rektbyfaith
Administrator
0
09-11-2022, 06:27 PM
#10
Archived author: <o> • Posted: 2022-09-11T18:27:24.225000+00:00
Original source

but when it does, it has to initialize them all
rektbyfaith
09-11-2022, 06:27 PM #10

Archived author: <o> • Posted: 2022-09-11T18:27:24.225000+00:00
Original source

but when it does, it has to initialize them all

Pages (2): 1 2 Next
Recently Browsing
 
Recently Browsing