mirror of
https://github.com/wuye9036/CppTemplateTutorial.git
synced 2024-03-22 13:11:16 +08:00
add public keyword float
void*
typeid example
`float` and `void*` typeid exmaple add public keywork
This commit is contained in:
parent
e5e89346b2
commit
b306167a0e
@ -1099,6 +1099,7 @@ void PrintID()
|
|||||||
|
|
||||||
template <> class TypeToID<float>
|
template <> class TypeToID<float>
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
static int const ID = 0xF10A7;
|
static int const ID = 0xF10A7;
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
@ -1108,6 +1109,7 @@ template <> class TypeToID<float>
|
|||||||
``` C++
|
``` C++
|
||||||
template <> class TypeToID<void*>
|
template <> class TypeToID<void*>
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
static int const ID = 0x401d;
|
static int const ID = 0x401d;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user