mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 19:22:22 +01:00
14 lines
221 B
C++
14 lines
221 B
C++
#pragma once
|
|
|
|
template <typename From, typename To>
|
|
struct TPointerIsConvertibleFromTo
|
|
{
|
|
private:
|
|
// static uint8 Test(...);
|
|
// static uint16 Test(To*);
|
|
|
|
public:
|
|
enum { Value = sizeof(Test((From*)nullptr)) - 1 };
|
|
};
|
|
|