Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Yeah possibly?

[DiscordArchive] Yeah possibly?

[DiscordArchive] Yeah possibly?

Pages (2): Previous 1 2
rektbyfaith
Administrator
0
09-10-2024, 12:30 PM
#11
Archived author: Tea • Posted: 2024-09-10T12:30:18.388000+00:00
Original source

check assert msg
rektbyfaith
09-10-2024, 12:30 PM #11

Archived author: Tea • Posted: 2024-09-10T12:30:18.388000+00:00
Original source

check assert msg

rektbyfaith
Administrator
0
09-10-2024, 12:30 PM
#12
Archived author: MaxtorCoder • Posted: 2024-09-10T12:30:26.355000+00:00
Original source

`v.index() == I`
rektbyfaith
09-10-2024, 12:30 PM #12

Archived author: MaxtorCoder • Posted: 2024-09-10T12:30:26.355000+00:00
Original source

`v.index() == I`

rektbyfaith
Administrator
0
09-10-2024, 12:30 PM
#13
Archived author: Tea • Posted: 2024-09-10T12:30:32.184000+00:00
Original source

yep
rektbyfaith
09-10-2024, 12:30 PM #13

Archived author: Tea • Posted: 2024-09-10T12:30:32.184000+00:00
Original source

yep

rektbyfaith
Administrator
0
09-10-2024, 12:30 PM
#14
Archived author: MaxtorCoder • Posted: 2024-09-10T12:30:34.871000+00:00
Original source

v = variant then I guess
rektbyfaith
09-10-2024, 12:30 PM #14

Archived author: MaxtorCoder • Posted: 2024-09-10T12:30:34.871000+00:00
Original source

v = variant then I guess

rektbyfaith
Administrator
0
09-10-2024, 12:30 PM
#15
Archived author: MaxtorCoder • Posted: 2024-09-10T12:30:45.302000+00:00
Original source

Makes sense as well
[Image: image.png?ex=690c94f5&is=690b4375&hm=f73...991e3b252&]
rektbyfaith
09-10-2024, 12:30 PM #15

Archived author: MaxtorCoder • Posted: 2024-09-10T12:30:45.302000+00:00
Original source

Makes sense as well
[Image: image.png?ex=690c94f5&is=690b4375&hm=f73...991e3b252&]

rektbyfaith
Administrator
0
09-10-2024, 12:30 PM
#16
Archived author: Tea • Posted: 2024-09-10T12:30:47.512000+00:00
Original source

std::variant has index() method too
rektbyfaith
09-10-2024, 12:30 PM #16

Archived author: Tea • Posted: 2024-09-10T12:30:47.512000+00:00
Original source

std::variant has index() method too

rektbyfaith
Administrator
0
09-10-2024, 12:34 PM
#17
Archived author: Tea • Posted: 2024-09-10T12:34:19.801000+00:00
Original source

but yes, union is correct since std::variant is basically implemented as ```
struct variant {
union { types, template magic to create union of all template types } _storage;
index_type _index;
};``` where index_type varies depending on how many types are inside (but dont forget about alignment)
rektbyfaith
09-10-2024, 12:34 PM #17

Archived author: Tea • Posted: 2024-09-10T12:34:19.801000+00:00
Original source

but yes, union is correct since std::variant is basically implemented as ```
struct variant {
union { types, template magic to create union of all template types } _storage;
index_type _index;
};``` where index_type varies depending on how many types are inside (but dont forget about alignment)

rektbyfaith
Administrator
0
09-10-2024, 12:34 PM
#18
Archived author: MaxtorCoder • Posted: 2024-09-10T12:34:34.382000+00:00
Original source

Ah
rektbyfaith
09-10-2024, 12:34 PM #18

Archived author: MaxtorCoder • Posted: 2024-09-10T12:34:34.382000+00:00
Original source

Ah

rektbyfaith
Administrator
0
09-10-2024, 12:34 PM
#19
Archived author: MaxtorCoder • Posted: 2024-09-10T12:34:45.538000+00:00
Original source

Makes sense
rektbyfaith
09-10-2024, 12:34 PM #19

Archived author: MaxtorCoder • Posted: 2024-09-10T12:34:45.538000+00:00
Original source

Makes sense

rektbyfaith
Administrator
0
09-10-2024, 12:35 PM
#20
Archived author: MaxtorCoder • Posted: 2024-09-10T12:35:39.183000+00:00
Original source

Thanks
rektbyfaith
09-10-2024, 12:35 PM #20

Archived author: MaxtorCoder • Posted: 2024-09-10T12:35:39.183000+00:00
Original source

Thanks

Pages (2): Previous 1 2
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)