Giter Club home page Giter Club logo

Comments (9)

ardanew avatar ardanew commented on May 18, 2024 2

to build under vs2017

  1. make /permissive+ flag in visual studio 2017
    OR
  2. change source to something like
    #ifdef _MSC_VER using ConstructorAccess = Handle<T, U>::ConstructorAccess; StreamHandle(ConstructorAccess ca, std::shared_ptr<Loop> ref) : Handle<T, U>{ca, std::move(ref)} {} #else

from uvw.

skypjack avatar skypjack commented on May 18, 2024

Have you tried to fix it and can already propose a solution?
I don't have VS2017 on board. Probably I can arrange something with appveyor but it will take a while for my free time isn't properly free currently.

from uvw.

Lance0724 avatar Lance0724 commented on May 18, 2024

I have tried to fix. But I did not find the reason abort the build error.

from uvw.

skypjack avatar skypjack commented on May 18, 2024

I tried using VS2017 on appveyor (see branch vs2017) and it works fine.
Tests compiles with no errors, also those that involve a StreamHandle

The same source code can build successful with vs2015

Are you experiencing the problem while compiling the tests or whatever?
If not, please provide a minimal example to reproduce the error. Otherwise I must think it's in the client code and close the issue.
There are not enough information so far to be able to help you.

from uvw.

Lance0724 avatar Lance0724 commented on May 18, 2024

I just use the "Code Example" in the github uvw README.md.
Just include header and libuv.lib without any change.

I think maybe it is a bug of c++11/14 compatibility in vs2017(V141) Platform Toolset.

Anyway, very thank you for your help.

from uvw.

skypjack avatar skypjack commented on May 18, 2024

You're welcome.

from uvw.

scp-r avatar scp-r commented on May 18, 2024

same problem when using vs2017 15.8.6.
change stream.hpp line 162 from:

#ifdef _MSC_VER
StreamHandle(ConstructorAccess ca, std::shared_ptr<Loop> ref)
        : Handle{ca, std::move(ref)}
    {}
#else
    using Handle<T, U>::Handle;
#endif

to:

#ifdef _MSC_VER
StreamHandle(typename Handle<T, U>::ConstructorAccess ca, std::shared_ptr<Loop> ref)
        : Handle<T, U>{ca, std::move(ref)}
    {}
#else
    using Handle<T, U>::Handle;
#endif

from uvw.

skypjack avatar skypjack commented on May 18, 2024

@Jasper0819X would you open a PR?

from uvw.

scp-r avatar scp-r commented on May 18, 2024

@skypjack see PR #134. Tested on vs2017 with toolchain v140(vs2015) and v141(vs2017)

from uvw.

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.