GithubHelp home page GithubHelp logo

Comments (10)

w1th0utnam3 avatar w1th0utnam3 commented on May 12, 2024 1

Cool. Yes, it is working now.

from entt.

skypjack avatar skypjack commented on May 12, 2024

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.

w1th0utnam3 avatar w1th0utnam3 commented on May 12, 2024

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.

skypjack avatar skypjack commented on May 12, 2024

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.

skypjack avatar skypjack commented on May 12, 2024

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.

w1th0utnam3 avatar w1th0utnam3 commented on May 12, 2024

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.

skypjack avatar skypjack commented on May 12, 2024

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.

w1th0utnam3 avatar w1th0utnam3 commented on May 12, 2024

from entt.

skypjack avatar skypjack commented on May 12, 2024

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.

skypjack avatar skypjack commented on May 12, 2024

Upstream. Thank you.

from entt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.