I’m programming a plugin framework, the plugin is supposed to pass data to the application, I created a queue where the plugin puts the data, but I want that the plugin can pass multiple data types (int, bool, char, …) and not only one.
Any ideas or any good way to do that?
You can use chars and cast them to just about anything. For the data types you can’t “get to” with simple casting I suggest using memcpy().