Comments (9)
to build under vs2017
- make /permissive+ flag in visual studio 2017
OR - 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.
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.
I have tried to fix. But I did not find the reason abort the build error.
from uvw.
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.
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.
You're welcome.
from uvw.
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.
@Jasper0819X would you open a PR?
from uvw.
@skypjack see PR #134. Tested on vs2017 with toolchain v140(vs2015) and v141(vs2017)
from uvw.
Related Issues (20)
- ErrorCode EPIPE -4047 Broken Pipe HOT 2
- Error in .vtu Files with hexahedron type of elements HOT 1
- loop::run not marked inline HOT 1
- 48 error HOT 1
- Vcpkg uvw version 2.12.1 HOT 1
- Is there 2.x backward compatibility layer? HOT 15
- uvw_fs_event and uvw_loop fail on Darwin PPC HOT 5
- create v2 branch for bug fixes HOT 4
- Provide a way to specify buffer size HOT 5
- How to Handle a Broken Pipe (SIGPIPE) in UVW? HOT 2
- Segmentation fault on calling thread.join due to destructor also calling thread.join HOT 5
- Q: cpp http server based on libuv HOT 3
- suppress compiler warning HOT 8
- Build issues HOT 5
- Document suggested cleanup approach HOT 9
- Error when building on Windows - multiple rules generate _deps/libuv-build/uv.lib HOT 4
- Issuing multiple filesystem operations at a time with user supplied buffer HOT 2
- Question: Pipe process output HOT 1
- uvw_net available HOT 8
- Run a task on next event loop iteration HOT 2
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 uvw.