Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
That being said, you may have your requirements satisfied with tagged unions which consists in implementing a struct with an anonymous union and label (like an enum) to keep track of what data is inside the union, this works really well when you know beforehand which data types you want to support. Another technique could be using macros, like the containers on the gunslinger framework, however I have never implemented something like this. Lastly you can always use void pointers, however you may need to be more clever to achieve it (I almost never use them).
Related posts
- Recreating Noita's Sand Simulation in C and OpenGL | Game Engineering
- game development with c
- Magnum: Lightweight, modular C++11 graphics middleware for games/visualization
- A Header Only OpenGL Framework Written In C
- Podlite v1.0 released: A lightweight block-oriented markup language for organizing knowledge