Comments (10)
Cool. Yes, it is working now.
from entt.
Unfortunately it's an issue of VS compiler. I cannot do much for that. If you find a workaround that works on VS, I'd be glad to integrate it. I've not a copy of Windows on which to test it.
from entt.
Thank you for your reply. As I mentioned in the last lines of the initial post, using
: pools(Pool<Component>{dim}, Pool<Components>{dim}...)
instead of
: pools{Pool<Component>{dim}, Pool<Components>{dim}...}
does the trick for VS2017, i.e. not using the uniform initialization syntax for the tuple.
from entt.
Yeah, I got it. Feel free to put it in a PR. Anyway, I'd like to have a switch like #ifdef WIN32/#endif
where WIN32
should be exported from cmake.
Meanwhile I added support for appveyor and I'm testing it. See branch AppVeyor. Hope it works for you. If it pass the tests, I'll integrate it on master.
from entt.
Ok, I pushed on branch appveyor and it works.
If you can confirm it, I'll merge the branch on master. Do not forget to build by using cmake, for it exports the expected variable WIN32
.
Thank you. I'm looking forward for your feedback.
from entt.
Are you sure that you only want to enable this when cmake ran? As the registry, etc. is header only I didn't run it and instead directly included the headers.
Alternatives or extensions to your solution would be the macros _MSC_VER
for the compiler version and _WIN32
and _WIN64
depending on the target defined by the Microsoft compiler.
from entt.
Actually I think cmake sets it up also when you run it through cygwin. Good point. _MSC_VER
is more appropriate. Can you create a PR for that? Otherwise I'll update it in the afternoon.
from entt.
from entt.
Found the time to update it and it works just fine on appveyor as expected.
If you can confirm it your side, I'll merge everything on master and close the issue.
Thank you very much.
from entt.
Upstream. Thank you.
from entt.
Related Issues (20)
- entt::registry has no member empty and each wtf HOT 8
- `entt::registry::clear()` does not "clear enough" HOT 3
- Combine snapshot and meta features HOT 2
- What is a "valid entity type"? (Question) HOT 2
- Debug Build Performance Issue HOT 2
- Memory leak when running "registry.create([large number])" HOT 7
- `type_info` is not forward declared
- Difficult to understand how it works without examples HOT 5
- 'each': is not a member of 'entt::basic registry<entt::entity,std::allocator<Entity>> HOT 1
- class object to entt? HOT 8
- Serialization of "dead" components
- C++20 ranges trait specializations
- Efficiently iterating over a set of groups? HOT 2
- Signals not triggering properly in storage mixin iterator based insert HOT 2
- Access violation when using registry.clear<Component>() HOT 9
- Is it possible to use entt::nth_argument_t with lambdas that capture? HOT 6
- Question it is posible to use Entt with lightweight wrapper class as a entt::entity HOT 2
- Calling valid() on empty entt::valid leads to a segmentation fault.
- Add ability to compare entt::null and entt::handle
- Components with overriden new operator. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from entt.