Timeline for Unique compile time (constexpr) type ID without RTTI
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 30, 2019 at 11:50 | history | edited | Toby Speight | CC BY-SA 4.0 | Little typo |
| Dec 19, 2018 at 16:56 | history | edited | papagaga | CC BY-SA 4.0 | added 176 characters in body |
| Dec 19, 2018 at 16:43 | comment | added | papagaga | @GuillaumeRacicot: thanks, I've edited my answer to take the examples into account | |
| Dec 19, 2018 at 16:42 | history | edited | papagaga | CC BY-SA 4.0 | added alternative design |
| Dec 19, 2018 at 15:42 | comment | added | Guillaume Racicot | I added some examples of uses. | |
| Dec 19, 2018 at 13:46 | comment | added | Guillaume Racicot | You are correct, references won''t work, but I think I'll simply require that T is an object type for now. Thanks! Also, for the usefulness of the code, it allow me using a frozen::unordered_map with type_id_t as key. RTTI is also quite costly and many disable it, so we can safely replaces most previous use of RTTI without paying heavy cost for classes that don't use it. | |
| Dec 19, 2018 at 10:52 | history | answered | papagaga | CC BY-SA 4.0 |