ReactiveX / RxCpp

Reactive Extensions for C++
Apache License 2.0
3.03k stars 390 forks source link

Visual Studio 2017: /std:c++17 produces error C2039: 'unexpected' is not a member of 'std' #462

Closed anatoly-spb closed 5 years ago

anatoly-spb commented 5 years ago

As you know std::unexpected has been deprecated and since C++17 has been removed from the standard C++ library: (here is details https://en.cppreference.com/w/cpp/error/unexpected) So if we try to build project with /std:c++17 it finished with:

include\rxcpp\rx-util.hpp(686): error C2039: 'unexpected': is not a member of 'std'
kirkshoop commented 5 years ago

Hi! what version of rxcpp is this? This issue was fixed by PR #389.

anatoly-spb commented 5 years ago

@kirkshoop I have used rxcpp via conan, there is 4.0.0 (rxcpp/4.0.0@bincrafters/stable). Thank you for the point.