add public keyword float void* typeid example

`float` and `void*` typeid exmaple add public keywork
This commit is contained in:
nmreadelf 2021-12-15 18:05:34 +08:00 committed by GitHub
parent e5e89346b2
commit b306167a0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}; };