Skip to content

error: no matching function for call when  #46

@VictorKaifeng

Description

@VictorKaifeng

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; ^~~~

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