Skip to content

Tests fail to compile: error: reference to 'Approx' is ambiguous #245

@yurivict

Description

@yurivict
/usr/ports/science/mutationpp/work/Mutationpp-1.0.6dev2/tests/c++/test_HarmonicOscillator.cpp:53:33: error: reference to 'Approx' is ambiguous
        CHECK(ho.energy(1.0) == Approx(0.581976706869326));
                                ^
/usr/local/include/catch2/catch.hpp:17777:22: note: candidate found by name lookup is 'Approx'
using Catch::Detail::Approx;
                     ^
/usr/local/include/catch2/catch.hpp:3754:53: note: candidate found by name lookup is 'Catch::Matchers::Approx'
    Vector::ApproxMatcher<T, AllocComp, AllocMatch> Approx( std::vector<T, AllocComp> const& comparator ) {
                                                    ^
/usr/ports/science/mutationpp/work/Mutationpp-1.0.6dev2/tests/c++/test_HarmonicOscillator.cpp:53:33: error: reference to 'Approx' is ambiguous
        CHECK(ho.energy(1.0) == Approx(0.581976706869326));
                                ^
/usr/local/include/catch2/catch.hpp:17777:22: note: candidate found by name lookup is 'Approx'
using Catch::Detail::Approx;
                     ^
/usr/local/include/catch2/catch.hpp:3754:53: note: candidate found by name lookup is 'Catch::Matchers::Approx'
    Vector::ApproxMatcher<T, AllocComp, AllocMatch> Approx( std::vector<T, AllocComp> const& comparator ) {
                                                    ^
/usr/ports/science/mutationpp/work/Mutationpp-1.0.6dev2/tests/c++/test_HarmonicOscillator.cpp:53:33: error: reference to 'Approx' is ambiguous
        CHECK(ho.energy(1.0) == Approx(0.581976706869326));
                                ^

Version: 1.0.6dev2
catch-2.13.10
clang-16
FreeBSD 13.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions