uNetworking / uWebSockets

Simple, secure & standards compliant web server for the most demanding of applications
Apache License 2.0
17.24k stars 1.75k forks source link

Won't compile with Visual Studio 2019 16.3 #940

Closed ZeikoRomsan1 closed 4 years ago

ZeikoRomsan1 commented 4 years ago

uWebSockets won't compile with Visual Studio 2019 16.3, 16.2 works good.

Error in VS 16.3: uWebSockets\f2\function2.hpp(705,1):

error C2440: 'static_cast': cannot convert from 'fu2::abi_400::detail::type_erasure::erasure<true,Config,fu2::abi_400::detail::property<true,false,void (void )>>' to 'erasure_t &' error C2440: with error C2440: [ error C2440: Config=fu2::abi_400::detail::config<true,false,fu2::capacity_default> error C2440: ]

Boost: 1.70.0 LIBUS_NO_SSL LIBUS_USE_LIBUV Version: v0.16.0b2 Commit: bc6ea664b17fb3736e1330e908aee00c4f3a750b Visual Studio 2019 16.3

ghost commented 4 years ago

So the solution is to update function2?

ZeikoRomsan1 commented 4 years ago

@alexhultman Yes thats correct, uwebsockets works good after upgrading f2\function2.hpp with commit: 7cd95374b0f1c941892bfc40f0ebb6564d33fdb9

ghost commented 4 years ago

Updated