From 24dd63789c8ec70afd27a1fa7811964b9d804cf2 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Wed, 24 Apr 2019 12:22:02 +0200 Subject: [PATCH] updated conan test --- conan/test_package/test_package.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/conan/test_package/test_package.cpp b/conan/test_package/test_package.cpp index 3cfac879c..e0a14bc4a 100644 --- a/conan/test_package/test_package.cpp +++ b/conan/test_package/test_package.cpp @@ -1,6 +1,5 @@ #include #include -#include struct position { float x; @@ -12,7 +11,7 @@ struct velocity { float dy; }; -void update(entt::registry<> ®istry) { +void update(entt::registry ®istry) { auto view = registry.view(); for(auto entity: view) { @@ -27,8 +26,8 @@ void update(entt::registry<> ®istry) { } } -void update(std::uint64_t dt, entt::registry<> ®istry) { - registry.view().each([dt](const auto, auto &pos, auto &vel) { +void update(std::uint64_t dt, entt::registry ®istry) { + registry.view().each([dt](auto &pos, auto &vel) { // gets all the components of the view at once ... pos.x += vel.dx * dt; @@ -39,7 +38,7 @@ void update(std::uint64_t dt, entt::registry<> ®istry) { } int main() { - entt::registry<> registry; + entt::registry registry; std::uint64_t dt = 16; for(auto i = 0; i < 10; ++i) { @@ -51,5 +50,7 @@ int main() { update(dt, registry); update(registry); + // ... + return EXIT_SUCCESS; }