Code Monkey home page Code Monkey logo

Comments (8)

mrzv avatar mrzv commented on June 18, 2024

Looking at the boost documentation, it appears that emplace_back() was added to that class in 1.55. Whether that's enough, I'm not sure. In any case, this would be too painful to fix, and I don't see much reason to support 4-year old versions of Boost.

from dionysus.

mrzv avatar mrzv commented on June 18, 2024

I just tested with Boost 1.55, and everything compiles. So I guess we can consider that to be the minimum required version.

from dionysus.

cdeepakroy avatar cdeepakroy commented on June 18, 2024

@mrzv Thank you for the reply. I just tried to build it against boost 1.65 and i get the following error:

Scanning dependencies of target zigzag-filtration-persistence
[  2%] Building CXX object examples/filtration/CMakeFiles/zigzag-filtration-persistence.dir/zigzag-filtration-persistence.cpp.o
In file included from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.h:182:0,
                 from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.h:9,
                 from /home/cdeepakroy/work/Libs/dionysus/examples/filtration/zigzag-filtration-persistence.cpp:11:
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.hpp: In instantiation of ‘dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = boost::range_detail::transformed_range<main()::__lambda17, const boost::iterator_range<dionysus::Simplex<>::BoundaryChainIterator<dionysus::ZpField<> > > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::vector; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::vector<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]’:
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.hpp:11:53:   required from ‘dionysus::ZigzagPersistence<Field_, Index_, Comparison_>::Index dionysus::ZigzagPersistence<Field_, Index_, Comparison_>::add_impl(const ChainRange&) [with ChainRange = boost::range_detail::transformed_range<main()::__lambda17, const boost::iterator_range<dionysus::Simplex<>::BoundaryChainIterator<dionysus::ZpField<> > > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; dionysus::ZigzagPersistence<Field_, Index_, Comparison_>::Index = int]’
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.h:50:39:   required from ‘dionysus::ZigzagPersistence<Field_, Index_, Comparison_>::Index dionysus::ZigzagPersistence<Field_, Index_, Comparison_>::add(const ChainRange&) [with ChainRange = boost::range_detail::transformed_range<main()::__lambda17, const boost::iterator_range<dionysus::Simplex<>::BoundaryChainIterator<dionysus::ZpField<> > > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; dionysus::ZigzagPersistence<Field_, Index_, Comparison_>::Index = int]’
/home/cdeepakroy/work/Libs/dionysus/examples/filtration/zigzag-filtration-persistence.cpp:42:114:   required from here
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.hpp:45:47: error: no matching function for call to ‘dionysus::Reduction<std::tuple<int, int> >::reduce(dionysus::SparseRowMatrix<dionysus::ZpField<>, int, std::less<int>, std::vector>::Column&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = boost::range_detail::transformed_range<main()::__lambda17, const boost::iterator_range<dionysus::Simplex<>::BoundaryChainIterator<dionysus::ZpField<> > > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::vector; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::vector<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]::__lambda3&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = boost::range_detail::transformed_range<main()::__lambda17, const boost::iterator_range<dionysus::Simplex<>::BoundaryChainIterator<dionysus::ZpField<> > > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::vector; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::vector<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]::__lambda4&, dionysus::SparseRowMatrix<dionysus::ZpField<>, int, std::less<int>, std::vector>::Field&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = boost::range_detail::transformed_range<main()::__lambda17, const boost::iterator_range<dionysus::Simplex<>::BoundaryChainIterator<dionysus::ZpField<> > > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::vector; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::vector<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]::__lambda5&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = boost::range_detail::transformed_range<main()::__lambda17, const boost::iterator_range<dionysus::Simplex<>::BoundaryChainIterator<dionysus::ZpField<> > > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::vector; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::vector<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]::__lambda2&)’
                         field_, addto, row_cmp);
                                               ^
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.hpp:45:47: note: candidates are:
In file included from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.h:12:0,
                 from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.h:9,
                 from /home/cdeepakroy/work/Libs/dionysus/examples/filtration/zigzag-filtration-persistence.cpp:11:
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/reduction.h:40:11: note: template<class Chain1, class ChainsLookup, class LowLookup, class Field, class Comparison> static dionysus::Reduction<Index_>::Index dionysus::Reduction<Index_>::reduce(Chain1&, const ChainsLookup&, const LowLookup&, const Field&, dionysus::Reduction<Index_>::AddtoVisitor<Field>&, const Comparison&) [with Chain1 = Chain1; ChainsLookup = ChainsLookup; LowLookup = LowLookup; Field = Field; Comparison = Comparison; Index_ = std::tuple<int, int>]
     Index reduce(Chain1&                     c,
           ^
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/reduction.h:40:11: note:   template argument deduction/substitution failed:
In file included from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.h:182:0,
                 from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.h:9,
                 from /home/cdeepakroy/work/Libs/dionysus/examples/filtration/zigzag-filtration-persistence.cpp:11:
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.hpp:45:47: note:   ‘dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = boost::range_detail::transformed_range<main()::__lambda17, const boost::iterator_range<dionysus::Simplex<>::BoundaryChainIterator<dionysus::ZpField<> > > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::vector; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::vector<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]::__lambda5’ is not derived from ‘dionysus::Reduction<std::tuple<int, int> >::AddtoVisitor<Field>’
                         field_, addto, row_cmp);
                                               ^
In file included from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.h:12:0,
                 from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.h:9,
                 from /home/cdeepakroy/work/Libs/dionysus/examples/filtration/zigzag-filtration-persistence.cpp:11:
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/reduction.h:76:11: note: template<class Chain1, class Chain2, class Field, class Comparison> static dionysus::Reduction<Index_>::Index dionysus::Reduction<Index_>::reduce(Chain1&, const std::vector<Chain2>&, const std::vector<_RealType>&, const Field&, dionysus::Reduction<Index_>::AddtoVisitor<Field>&, const Comparison&) [with Chain1 = Chain1; Chain2 = Chain2; Field = Field; Comparison = Comparison; Index_ = std::tuple<int, int>]
     Index reduce(Chain1&                     c,
           ^
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/reduction.h:76:11: note:   template argument deduction/substitution failed:
In file included from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.h:182:0,
                 from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.h:9,
                 from /home/cdeepakroy/work/Libs/dionysus/examples/filtration/zigzag-filtration-persistence.cpp:11:
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.hpp:45:47: note:   ‘dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = boost::range_detail::transformed_range<main()::__lambda17, const boost::iterator_range<dionysus::Simplex<>::BoundaryChainIterator<dionysus::ZpField<> > > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::vector; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::vector<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]::__lambda3’ is not derived from ‘const std::vector<Chain2, std::allocator<_T2> >’
                         field_, addto, row_cmp);
                                               ^
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.hpp: In instantiation of ‘dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::deque; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::deque<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]’:
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.hpp:15:58:   required from ‘dionysus::ZigzagPersistence<Field_, Index_, Comparison_>::Index dionysus::ZigzagPersistence<Field_, Index_, Comparison_>::add_impl(const ChainRange&) [with ChainRange = boost::range_detail::transformed_range<main()::__lambda17, const boost::iterator_range<dionysus::Simplex<>::BoundaryChainIterator<dionysus::ZpField<> > > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; dionysus::ZigzagPersistence<Field_, Index_, Comparison_>::Index = int]’
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.h:50:39:   required from ‘dionysus::ZigzagPersistence<Field_, Index_, Comparison_>::Index dionysus::ZigzagPersistence<Field_, Index_, Comparison_>::add(const ChainRange&) [with ChainRange = boost::range_detail::transformed_range<main()::__lambda17, const boost::iterator_range<dionysus::Simplex<>::BoundaryChainIterator<dionysus::ZpField<> > > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; dionysus::ZigzagPersistence<Field_, Index_, Comparison_>::Index = int]’
/home/cdeepakroy/work/Libs/dionysus/examples/filtration/zigzag-filtration-persistence.cpp:42:114:   required from here
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.hpp:45:47: error: no matching function for call to ‘dionysus::Reduction<std::tuple<int, int> >::reduce(dionysus::SparseRowMatrix<dionysus::ZpField<>, int, std::less<int>, std::deque>::Column&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::deque; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::deque<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]::__lambda3&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::deque; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::deque<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]::__lambda4&, dionysus::SparseRowMatrix<dionysus::ZpField<>, int, std::less<int>, std::deque>::Field&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::deque; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::deque<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]::__lambda5&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::deque; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::deque<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]::__lambda2&)’
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.hpp:45:47: note: candidates are:
In file included from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.h:12:0,
                 from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.h:9,
                 from /home/cdeepakroy/work/Libs/dionysus/examples/filtration/zigzag-filtration-persistence.cpp:11:
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/reduction.h:40:11: note: template<class Chain1, class ChainsLookup, class LowLookup, class Field, class Comparison> static dionysus::Reduction<Index_>::Index dionysus::Reduction<Index_>::reduce(Chain1&, const ChainsLookup&, const LowLookup&, const Field&, dionysus::Reduction<Index_>::AddtoVisitor<Field>&, const Comparison&) [with Chain1 = Chain1; ChainsLookup = ChainsLookup; LowLookup = LowLookup; Field = Field; Comparison = Comparison; Index_ = std::tuple<int, int>]
     Index reduce(Chain1&                     c,
           ^
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/reduction.h:40:11: note:   template argument deduction/substitution failed:
In file included from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.h:182:0,
                 from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.h:9,
                 from /home/cdeepakroy/work/Libs/dionysus/examples/filtration/zigzag-filtration-persistence.cpp:11:
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.hpp:45:47: note:   ‘dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::deque; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::deque<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]::__lambda5’ is not derived from ‘dionysus::Reduction<std::tuple<int, int> >::AddtoVisitor<Field>’
                         field_, addto, row_cmp);
                                               ^
In file included from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.h:12:0,
                 from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.h:9,
                 from /home/cdeepakroy/work/Libs/dionysus/examples/filtration/zigzag-filtration-persistence.cpp:11:
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/reduction.h:76:11: note: template<class Chain1, class Chain2, class Field, class Comparison> static dionysus::Reduction<Index_>::Index dionysus::Reduction<Index_>::reduce(Chain1&, const std::vector<Chain2>&, const std::vector<_RealType>&, const Field&, dionysus::Reduction<Index_>::AddtoVisitor<Field>&, const Comparison&) [with Chain1 = Chain1; Chain2 = Chain2; Field = Field; Comparison = Comparison; Index_ = std::tuple<int, int>]
     Index reduce(Chain1&                     c,
           ^
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/reduction.h:76:11: note:   template argument deduction/substitution failed:
In file included from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.h:182:0,
                 from /home/cdeepakroy/work/Libs/dionysus/include/dionysus/zigzag-persistence.h:9,
                 from /home/cdeepakroy/work/Libs/dionysus/examples/filtration/zigzag-filtration-persistence.cpp:11:
/home/cdeepakroy/work/Libs/dionysus/include/dionysus/sparse-row-matrix.hpp:45:47: note:   ‘dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::reduce(const ChainRange&, dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain&) [with ChainRange = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >; Field_ = dionysus::ZpField<>; Index_ = int; Comparison_ = std::less<int>; Column_ = std::deque; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::Column = std::deque<dionysus::detail::SparseRowMatrixEntry<dionysus::ZpField<>, int> >; dionysus::SparseRowMatrix<Field_, Index_, Comparison_, Column_>::IndexChain = std::vector<dionysus::ChainEntry<dionysus::ZpField<>, int>, std::allocator<dionysus::ChainEntry<dionysus::ZpField<>, int> > >]::__lambda3’ is not derived from ‘const std::vector<Chain2, std::allocator<_T2> >’
                         field_, addto, row_cmp);
                                               ^
make[2]: *** [examples/filtration/CMakeFiles/zigzag-filtration-persistence.dir/zigzag-filtration-persistence.cpp.o] Error 1
make[1]: *** [examples/filtration/CMakeFiles/zigzag-filtration-persistence.dir/all] Error 2
make: *** [all] Error 2

from dionysus.

mrzv avatar mrzv commented on June 18, 2024

What compiler are you using?

from dionysus.

cdeepakroy avatar cdeepakroy commented on June 18, 2024

It is using g++ version 4.8.4

Below is the output of the cmake command

 cmake -D PYTHON_EXECUTABLE=~/anaconda/bin/python2.7 ../
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Boost version: 1.65.0
-- Boost version: 1.65.0
-- Found PythonInterp: /home/cdeepakroy/anaconda/bin/python2.7 (found version "2.7.13") 
-- Found PythonLibs: /home/cdeepakroy/anaconda/lib/libpython2.7.so
-- pybind11 v2.1.1
-- Performing Test HAS_CPP14_FLAG
-- Performing Test HAS_CPP14_FLAG - Failed
-- Performing Test HAS_CPP11_FLAG
-- Performing Test HAS_CPP11_FLAG - Success
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- LTO enabled
-- Configuring done
-- Generating done
-- Build files have been written to: /home/cdeepakroy/work/Libs/dionysus/build

The CXX compiler /usr/bin/c++ it detects is symlinked to /usr/bin/g++

from dionysus.

mrzv avatar mrzv commented on June 18, 2024

That's an old compiler. Is there no way to use something more recent? In another issue, somebody successfully compiled the code with GCC 5.4, which is also old, but not quite as old.

from dionysus.

cdeepakroy avatar cdeepakroy commented on June 18, 2024

I rebuilt with version 5.4.1 and it works! Thanks for all the help!

from dionysus.

mrzv avatar mrzv commented on June 18, 2024

Glad to hear it! And thanks for understanding: it would be too much effort to support very old compilers and libraries.

from dionysus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.