Skip to content

Compile error == operator overloading #8

Description

@thokag

Beim compile des measurement Tests erscheint folgende Fehlermeldung:
/usr/include/gtest/gtest.h:1430:11: error: invalid operands to binary expression
('int' and 'const cpppc::Measurements')
if (lhs == rhs) {
~~~ ^ ~~~
Warum wird hier lhs als int interpretiert? Die Signatur meines ==-Operators sieht wie folgt aus:
edit:
bool operator==(const self_t &rhs) const
//bool operator==(const vector &v1) const

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions