diff options
author | aargor <aargor@microsoft.com> | 2017-02-20 19:29:47 -0800 |
---|---|---|
committer | Kirk Shoop <kirk.shoop@microsoft.com> | 2017-02-20 19:29:47 -0800 |
commit | 7919ac2aa228515456b0d46367ac7d92a50d05ce (patch) | |
tree | 4711c4acd8305134461e5a8a3823851bc0f5643d /Rx/v2/src | |
parent | 7811809ebb9d4226420ad51d11a922704b56b7a9 (diff) | |
download | RxCpp-7919ac2aa228515456b0d46367ac7d92a50d05ce.tar.gz |
Work-around for VS2017RC error C2672 building doc (#357)
When building RxCPP with the latest VS2017 RC, the compiler emits error
C2672 on compiling a method.
There was some off-line discussion (Kirk Shoop was included) about the
legitimacy of the error. In either case, I'd anticipate that the error
could hit in VS2017RTW, so I'm offering this PR.
The change is very targeted -- a natural question is if this error could
arise in the methods around retry. For that and further discussion, I
have to point you to my colleagues participating in the off-line
discussion; for this particular patch all I could do was confirm the
latest RC still needs it to build.
Diffstat (limited to 'Rx/v2/src')
-rw-r--r-- | Rx/v2/src/rxcpp/rx-observable.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Rx/v2/src/rxcpp/rx-observable.hpp b/Rx/v2/src/rxcpp/rx-observable.hpp index 6ad8da7..ef96d36 100644 --- a/Rx/v2/src/rxcpp/rx-observable.hpp +++ b/Rx/v2/src/rxcpp/rx-observable.hpp @@ -1435,7 +1435,7 @@ public: -> decltype(observable_member(retry_tag{}, *(this_type*)nullptr, std::forward<AN>(an)...)) /// \endcond { - return observable_member(retry_tag{}, *this, std::forward<AN>(an)...); + return observable_member(retry_tag{}, *(this_type*)this, std::forward<AN>(an)...); } /*! @copydoc rx-start_with.hpp |