Skip to content

not able to compile code when using zip (was able to compile using version 2.3.0) #397

Open
@nikobarli

Description

@nikobarli

The following code cannot be compiled in v4.0. It was compilable in version 2.3.0. I am not sure if it is intended or not.

auto ZipAndAdd(const rxcpp::observable<int> & in1, const rxcpp::observable<int> & in2) {
    return in1.zip(in2);
}

It gave errors as follows:

rx-observable.hpp(1123): error C2672: 'observable_member': no matching overloaded function found

Removing the const on the second argument declaration fixed this error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions