Fixed
Fixed an issue where I had to use map_settings.template push<> instead of map_settings.push<> for other compilers.
Previous Release
STL
Exciting news! Most of the STL containers/types are now officially supported by ImReflect. Meaning when ImReflect encounters an STL container, it knows how to display it.
Supported Types
- Strings:
std::string - Containers:
vector,array,list,deque,map,set, and their variants - Smart Pointers:
shared_ptr,unique_ptr,weak_ptr - Utilities:
pair,tuple,optional,variant
See the wiki for all supported types.
Example:
std::tuple<int, float, std::string> my_tuple = { 1, 2.0f, "three" };
ImReflect::Input("my tuple", my_tuple);
std::map<std::string, float> my_map = { {"one", 1.0f}, {"two", 2.0f} };
ImReflect::Input("my map", my_map);
std::vector<int> my_vec = { 1, 2, 3 };
ImReflect::Input("my vec", my_vec);
What's next?
- Testing/Feedback. The only person who has used it is myself. I would love to receive some feedback from others to see how they interact with the library. So if you have any feedback or suggestion, don't hesitate to make an issue!
- Extensions. I want to add extensions/implementations for other types that are not officially in C++ (E.g. glm)
How to use
Read the Getting Started or download the single header (ImReflect.hpp) from the single_header folder on main.
