-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#define ImVector #262
Comments
I say go for it. The way I see it is that ImVector (as many other of the Im types) is a implementation detail that very few needs to care about. |
+1 - I agree with Daniel! On Tue, Jul 7, 2015 at 8:50 AM, Daniel Collin [email protected]
|
+1 - I agree If one needs an automatic conversion from their vector struct/class to ImVector could always define operator ImVector() and be happy... |
#262) May trigger new compilation warnings?
OK done that, changed the size_t to int which allowed to remove many of the casting in the code. I tested some combinations of visual/clang 32/64 but there's probably new warnings to be found with some compilers. |
Very happy with this change. Removed a bunch of cast. Using the fields directly, it's shorter to write, easier to step into and much faster in debug builds where inline calls are recorded (measured a 10% difference in my benchmarks). |
I am considering removing the ability to #define ImVector to a type that isn't the provided ImGui type.
I was wondering if anyone it is using the facility to #define ImVector and why?
The text was updated successfully, but these errors were encountered: