mutationpp / Mutationpp

The MUlticomponent Thermodynamic And Transport library for IONized gases in C++
GNU Lesser General Public License v3.0
101 stars 58 forks source link

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

Open yurivict opened 8 months ago

yurivict commented 8 months ago
/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