Skip to content

Cannot convert 'Catch::SimplePcg32' to 'uint64_t' (aka 'unsigned long long') without a conversion operator #2030

Description

Hello.
I've included the header file "catch.hpp" in my iOS application where I have a C++ part and defined #define CATCH_CONFIG_MAIN in a cpp file that I want to be tested.

I've also written a simple test:

int return_int(int arg){
return 1;
}

TEST_CASE( "Test", "[int]" ) {
REQUIRE(return_int(1) == 1);
REQUIRE(return_int(2) == 1);
}

But all I have are these two errors in the catch.hpp file:
Assigning to 'uint64_t' (aka 'unsigned long long') from incompatible type 'Catch::SimplePcg32'
Invalid operands to binary expression ('uint64_t' (aka 'unsigned long long') and 'Catch::SimplePcg32')

Screenshot 2020-09-21 at 16 10 44

Compiler: Apple clang version 12.0.0 (clang-1200.0.32.2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueIssues that can be undertaken by someone new to the projectPossible bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions