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

error: no matching function for call when #46

Open
VictorKaifeng opened this issue Nov 29, 2023 · 0 comments
Open

error: no matching function for call when #46

VictorKaifeng opened this issue Nov 29, 2023 · 0 comments

Comments

@VictorKaifeng
Copy link

I'm trying to build ripser with g++ -Wall ripser.cpp -o ripser -g but i get the following error:

ripser.cpp: In constructor 'ripser<compressed_distance_matrix<(compressed_matrix_layout)0u> >::simplex_coboundary_enumerator::simplex_coboundary_enumerator(diameter_entry_t, index_t, const ripser<compressed_distance_matrix<(compressed_matrix_layout)0u> >&)': ripser.cpp:845:62: error: no matching function for call to 'diameter_entry_t::diameter_entry_t()' binomial_coeff(_parent.binomial_coeff), parent(_parent) { ^ ripser.cpp:182:37: note: candidate: template<class _U1, class _U2, typename std::enable_if<(_ConstructiblePair<_U1, _U2>() && _ImplicitlyConvertiblePair<_U1, _U2>()), bool>::type <anonymous> > constexpr diameter_entry_t::diameter_entry_t(const float&, const entry_t&) using std::pair<value_t, entry_t>::pair; ^~~~ ripser.cpp:182:37: note: template argument deduction/substitution failed: ripser.cpp:845:62: note: candidate expects 2 arguments, 0 provided binomial_coeff(_parent.binomial_coeff), parent(_parent) { ^ ripser.cpp:182:37: note: candidate: template<class _U1, class _U2, typename std::enable_if<(_ConstructiblePair<_U1, _U2>() && (! _ImplicitlyConvertiblePair<_U1, _U2>())), bool>::type <anonymous> > constexpr diameter_entry_t::diameter_entry_t(const float&, const entry_t&) using std::pair<value_t, entry_t>::pair; ^~~~

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