mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
124 files changed.
This commit is contained in:
13
Project Reboot 3.0/PointerIsConvertibleFromTo.h
Normal file
13
Project Reboot 3.0/PointerIsConvertibleFromTo.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#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 };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user