Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yurivict opened this issue Nov 6, 2023 · 0 comments
Open

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

yurivict opened this issue Nov 6, 2023 · 0 comments

Comments

@yurivict
Copy link

yurivict commented Nov 6, 2023

/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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant