henrik karlsson
b11d35f80e
[UnrealEd]
...
* Reverted the changes in 25904929 related to subclasses to TCommands<>.
This code relies on undefined behavior of how things are inlined. base class is a template with a static variable. One instance of that static variable exists in each dll/exe. To call TCommands<>::Get() would return the instance in the same dll.
But, because the subclass has dllexport on the type and not the members it will generate a Get function that is not inlined. The callsite when calling Get will actually then use the instantiated Get() function and not the inlined one.
So for
class API X : public TCommands<X> {}
it will (for now) work to call
X::Get() and get the same instantiated singletone.
Calling
TCommands<X>::Get() will definitely not work and return the singleton instantiated in the same dll/exe
#rb none
[CL 25909947 by henrik karlsson in ue5-main branch]
2023-06-09 23:42:49 -04:00
..
2023-06-05 22:13:14 -04:00
2023-05-15 16:26:12 -04:00
2023-06-02 11:20:53 -04:00
2023-05-25 18:06:26 -04:00
2023-06-07 16:48:21 -04:00
2023-06-01 17:53:45 -04:00
2023-05-16 15:28:57 -04:00
2023-06-08 15:56:25 -04:00
2023-05-31 17:38:09 -04:00
2023-06-05 14:57:34 -04:00
2023-05-10 18:30:08 -04:00
2023-06-06 21:17:28 -04:00
2023-06-01 13:04:00 -04:00
2023-05-16 10:52:49 -04:00
2023-05-11 16:48:21 -04:00
2023-05-11 16:48:21 -04:00
2023-05-16 10:52:49 -04:00
2023-05-15 16:26:12 -04:00
2023-05-17 10:55:01 -04:00
2023-05-15 16:26:12 -04:00
2023-05-31 14:39:25 -04:00
2023-06-07 13:10:47 -04:00
2023-05-12 12:13:52 -04:00
2023-05-25 18:15:31 -04:00
2023-05-23 13:34:08 -04:00
2023-06-08 15:54:51 -04:00
2023-05-18 07:29:15 -04:00
2023-06-08 15:09:10 -04:00
2023-05-15 16:26:12 -04:00
2023-05-12 12:13:52 -04:00
2023-06-07 13:46:24 -04:00
2023-05-26 18:24:46 -04:00
2023-05-15 16:26:12 -04:00
2023-06-05 12:02:05 -04:00
2023-06-03 15:25:01 -04:00
2023-05-12 12:13:52 -04:00
2023-05-26 15:52:39 -04:00
2023-06-09 14:47:02 -04:00
2023-06-07 13:46:24 -04:00
2023-05-16 10:52:49 -04:00
2023-06-08 16:11:38 -04:00
2023-06-01 17:53:45 -04:00
2023-05-25 09:07:23 -04:00
2023-05-23 18:15:45 -04:00
2023-06-08 06:16:59 -04:00
2023-06-05 12:02:05 -04:00
2023-06-07 17:56:00 -04:00
2023-05-15 16:26:12 -04:00
2023-06-09 19:33:43 -04:00
2023-06-08 10:14:43 -04:00
2023-05-11 16:48:21 -04:00
2023-06-09 22:20:54 -04:00
2023-06-02 05:02:31 -04:00
2023-05-12 12:13:52 -04:00
2023-05-16 10:52:49 -04:00
2023-05-16 10:52:49 -04:00
2023-06-08 15:55:25 -04:00
2023-05-16 10:52:49 -04:00
2023-05-15 16:26:12 -04:00
2023-06-09 15:59:33 -04:00
2023-05-16 10:52:49 -04:00
2023-05-11 16:48:21 -04:00
2023-06-08 13:18:50 -04:00
2023-05-15 16:26:12 -04:00
2023-05-12 12:13:52 -04:00
2023-05-15 16:26:12 -04:00
2023-06-09 16:13:52 -04:00
2023-05-12 12:13:52 -04:00
2023-05-16 16:01:21 -04:00
2023-06-09 16:10:15 -04:00
2023-04-26 10:03:27 -04:00
2023-06-08 10:33:57 -04:00
2023-06-08 15:29:43 -04:00
2023-05-26 15:52:39 -04:00
2023-05-15 16:26:12 -04:00
2023-05-16 10:52:49 -04:00
2023-06-07 07:45:17 -04:00
2023-04-26 10:11:09 -04:00
2023-05-18 13:20:35 -04:00
2023-05-31 08:14:22 -04:00
2023-05-26 00:55:23 -04:00
2023-05-16 10:52:49 -04:00
2023-05-31 09:09:27 -04:00
2023-05-15 16:26:12 -04:00
2023-05-12 12:13:52 -04:00
2023-05-25 16:35:45 -04:00
2023-05-16 10:52:49 -04:00
2023-05-23 18:34:21 -04:00
2023-05-16 10:52:49 -04:00
2023-05-24 09:39:39 -04:00
2023-06-06 15:17:40 -04:00
2023-05-15 16:26:12 -04:00
2023-06-09 23:42:49 -04:00
2023-04-26 10:31:35 -04:00
2023-05-15 16:26:12 -04:00
2023-05-26 15:52:39 -04:00
2023-05-16 10:52:49 -04:00
2023-06-03 15:25:01 -04:00
2023-05-25 09:07:23 -04:00
2023-06-08 10:14:43 -04:00