* installing to library ‘/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages’
* installing *source* package ‘MLModelSelection’ ...
** this is package ‘MLModelSelection’ version ‘1.0’
** package ‘MLModelSelection’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C compiler: ‘Debian clang version 21.1.8 (3)’
using C++ compiler: ‘Debian clang version 21.1.8 (3)’
make[1]: Entering directory '/home/hornik/tmp/scratch/Rtmp3JG3M9/R.INSTALL3cb2e8490ff340/MLModelSelection/src'
clang++-21 -std=gnu++20 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RcppArmadillo/include' -I'/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RcppDist/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -c MLModelSelection.cpp -o MLModelSelection.o
MLModelSelection.cpp:111:28: error: reference to 'span' is ambiguous
111 | rowvec X_row(X(span(i), span(t), span::all));
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: candidate found by name lookup is 'std::span'
124 | class span
| ^
/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RcppArmadillo/include/current/armadillo_bits/span.hpp:38:8: note: candidate found by name lookup is 'arma::span'
38 | struct span : public span_base<>
| ^
MLModelSelection.cpp:111:28: error: no viable constructor or deduction guide for deduction of template arguments of 'span'
111 | rowvec X_row(X(span(i), span(t), span::all));
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:229:2: note: candidate template ignored: couldn't infer template argument '_Type'
229 | span(_Range&& __range)
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:229:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _Range> requires (! __detail::__is_span<remove_cvref_t<_Range>>) && (! __detail::__is_std_array<remove_cvref_t<_Range>>) && (! is_array_v<remove_cvref_t<_Range>>) && ranges::contiguous_range<_Range> && ranges::sized_range<_Range> && (ranges::borrowed_range<_Range> || is_const_v<element_type>) && __is_compatible_ref<ranges::range_reference_t<_Range>>::value explicit(extent != dynamic_extent) span(_Range &&__range) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: candidate template ignored: could not match 'span<_Type, _Extent>' against 'int'
124 | class span
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> span(span<_Type, _Extent>) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:203:2: note: candidate template ignored: could not match 'type_identity_t<element_type>[_ArrayExtent]' (aka 'typename type_identity<element_type>::type[_ArrayExtent]') against 'int'
203 | span(type_identity_t<element_type> (&__arr)[_ArrayExtent]) noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:203:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, size_t _ArrayExtent> requires (_Extent == dynamic_extent || _ArrayExtent == _Extent) span(type_identity_t<element_type> (&__arr)[_ArrayExtent]) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:210:2: note: candidate template ignored: could not match 'array<_Tp, _ArrayExtent>' against 'int'
210 | span(array<_Tp, _ArrayExtent>& __arr) noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:210:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _Tp, size_t _ArrayExtent> requires __is_compatible_array<_Tp, _ArrayExtent>::value span(array<_Tp, _ArrayExtent> &__arr) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:217:2: note: candidate template ignored: could not match 'array<_Tp, _ArrayExtent>' against 'int'
217 | span(const array<_Tp, _ArrayExtent>& __arr) noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:217:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _Tp, size_t _ArrayExtent> requires __is_compatible_array<const _Tp, _ArrayExtent>::value span(const array<_Tp, _ArrayExtent> &__arr) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:248:7: note: candidate template ignored: could not match 'span<_Type, _Extent>' against 'int'
248 | span(const span&) noexcept = default;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:248:7: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> span(const span<_Type, _Extent> &) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:256:2: note: candidate template ignored: could not match 'span<_OType, _OExtent>' against 'int'
256 | span(const span<_OType, _OExtent>& __s) noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:256:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _OType, size_t _OExtent> requires (_Extent == dynamic_extent || _OExtent == dynamic_extent || _Extent == _OExtent) && (__is_array_convertible<_Type, _OType>::value) explicit(extent != dynamic_extent && _OExtent == dynamic_extent) span(const span<_OType, _OExtent> &__s) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:470:7: note: candidate template ignored: could not match '_SizedPtr' (aka '__span_ptr<_Type>') against 'int'
470 | span(_SizedPtr __ptr) noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:470:7: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> explicit span(_SizedPtr __ptr) -> span<_Type, _Extent> requires (extent != dynamic_extent)'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:482:5: note: candidate template ignored: could not match '_Type[_ArrayExtent]' against 'int'
482 | span(_Type(&)[_ArrayExtent]) -> span<_Type, _ArrayExtent>;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:485:5: note: candidate template ignored: could not match 'array<_Type, _ArrayExtent>' against 'int'
485 | span(array<_Type, _ArrayExtent>&) -> span<_Type, _ArrayExtent>;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:488:5: note: candidate template ignored: could not match 'array<_Type, _ArrayExtent>' against 'int'
488 | span(const array<_Type, _ArrayExtent>&)
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:496:5: note: candidate template ignored: constraints not satisfied [with _Range = int &]
496 | span(_Range &&)
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:495:12: note: because 'int &' does not satisfy 'contiguous_range'
495 | template<ranges::contiguous_range _Range>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ranges_base.h:625:9: note: because 'int &' does not satisfy 'random_access_range'
625 | = random_access_range<_Tp> && contiguous_iterator<iterator_t<_Tp>>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ranges_base.h:620:9: note: because 'int &' does not satisfy 'bidirectional_range'
620 | = bidirectional_range<_Tp> && random_access_iterator<iterator_t<_Tp>>;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ranges_base.h:615:9: note: because 'int &' does not satisfy 'forward_range'
615 | = forward_range<_Tp> && bidirectional_iterator<iterator_t<_Tp>>;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ranges_base.h:610:9: note: because 'int &' does not satisfy 'input_range'
610 | = input_range<_Tp> && forward_iterator<iterator_t<_Tp>>;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ranges_base.h:605:27: note: because 'int &' does not satisfy 'range'
605 | concept input_range = range<_Tp> && input_iterator<iterator_t<_Tp>>;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ranges_base.h:516:2: note: because 'ranges::begin(__t)' would be invalid: no matching function for call to object of type 'const ranges::__access::_Begin'
516 | ranges::begin(__t);
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:177:7: note: candidate function template not viable: requires 0 arguments, but 1 was provided
177 | span() noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:177:7: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> span() -> span<_Type, _Extent> requires (_Extent == dynamic_extent || _Extent == 0)'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:185:2: note: candidate function template not viable: requires 2 arguments, but 1 was provided
185 | span(_It __first, size_type __count)
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:185:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, contiguous_iterator<> _It> requires __is_compatible_ref<iter_reference_t<_It>>::value explicit(extent != dynamic_extent) span(_It __first, size_type __count) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:194:2: note: candidate function template not viable: requires 2 arguments, but 1 was provided
194 | span(_It __first, _End __last)
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:194:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, contiguous_iterator<> _It, sized_sentinel_for<_It> _End> requires __is_compatible_ref<iter_reference_t<_It>>::value && (! is_convertible_v<_End, size_type>) explicit(extent != dynamic_extent) span(_It __first, _End __last) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:492:5: note: candidate function template not viable: requires 2 arguments, but 1 was provided
492 | span(_Iter, _End)
| ^ ~~~~~~~~~~~
MLModelSelection.cpp:111:37: error: reference to 'span' is ambiguous
111 | rowvec X_row(X(span(i), span(t), span::all));
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: candidate found by name lookup is 'std::span'
124 | class span
| ^
/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RcppArmadillo/include/current/armadillo_bits/span.hpp:38:8: note: candidate found by name lookup is 'arma::span'
38 | struct span : public span_base<>
| ^
MLModelSelection.cpp:111:37: error: no viable constructor or deduction guide for deduction of template arguments of 'span'
111 | rowvec X_row(X(span(i), span(t), span::all));
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:229:2: note: candidate template ignored: couldn't infer template argument '_Type'
229 | span(_Range&& __range)
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:229:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _Range> requires (! __detail::__is_span<remove_cvref_t<_Range>>) && (! __detail::__is_std_array<remove_cvref_t<_Range>>) && (! is_array_v<remove_cvref_t<_Range>>) && ranges::contiguous_range<_Range> && ranges::sized_range<_Range> && (ranges::borrowed_range<_Range> || is_const_v<element_type>) && __is_compatible_ref<ranges::range_reference_t<_Range>>::value explicit(extent != dynamic_extent) span(_Range &&__range) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: candidate template ignored: could not match 'span<_Type, _Extent>' against 'int'
124 | class span
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> span(span<_Type, _Extent>) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:203:2: note: candidate template ignored: could not match 'type_identity_t<element_type>[_ArrayExtent]' (aka 'typename type_identity<element_type>::type[_ArrayExtent]') against 'int'
203 | span(type_identity_t<element_type> (&__arr)[_ArrayExtent]) noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:203:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, size_t _ArrayExtent> requires (_Extent == dynamic_extent || _ArrayExtent == _Extent) span(type_identity_t<element_type> (&__arr)[_ArrayExtent]) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:210:2: note: candidate template ignored: could not match 'array<_Tp, _ArrayExtent>' against 'int'
210 | span(array<_Tp, _ArrayExtent>& __arr) noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:210:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _Tp, size_t _ArrayExtent> requires __is_compatible_array<_Tp, _ArrayExtent>::value span(array<_Tp, _ArrayExtent> &__arr) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:217:2: note: candidate template ignored: could not match 'array<_Tp, _ArrayExtent>' against 'int'
217 | span(const array<_Tp, _ArrayExtent>& __arr) noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:217:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _Tp, size_t _ArrayExtent> requires __is_compatible_array<const _Tp, _ArrayExtent>::value span(const array<_Tp, _ArrayExtent> &__arr) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:248:7: note: candidate template ignored: could not match 'span<_Type, _Extent>' against 'int'
248 | span(const span&) noexcept = default;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:248:7: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> span(const span<_Type, _Extent> &) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:256:2: note: candidate template ignored: could not match 'span<_OType, _OExtent>' against 'int'
256 | span(const span<_OType, _OExtent>& __s) noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:256:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _OType, size_t _OExtent> requires (_Extent == dynamic_extent || _OExtent == dynamic_extent || _Extent == _OExtent) && (__is_array_convertible<_Type, _OType>::value) explicit(extent != dynamic_extent && _OExtent == dynamic_extent) span(const span<_OType, _OExtent> &__s) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:470:7: note: candidate template ignored: could not match '_SizedPtr' (aka '__span_ptr<_Type>') against 'int'
470 | span(_SizedPtr __ptr) noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:470:7: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> explicit span(_SizedPtr __ptr) -> span<_Type, _Extent> requires (extent != dynamic_extent)'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:482:5: note: candidate template ignored: could not match '_Type[_ArrayExtent]' against 'int'
482 | span(_Type(&)[_ArrayExtent]) -> span<_Type, _ArrayExtent>;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:485:5: note: candidate template ignored: could not match 'array<_Type, _ArrayExtent>' against 'int'
485 | span(array<_Type, _ArrayExtent>&) -> span<_Type, _ArrayExtent>;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:488:5: note: candidate template ignored: could not match 'array<_Type, _ArrayExtent>' against 'int'
488 | span(const array<_Type, _ArrayExtent>&)
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:496:5: note: candidate template ignored: constraints not satisfied [with _Range = int &]
496 | span(_Range &&)
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:495:12: note: because 'int &' does not satisfy 'contiguous_range'
495 | template<ranges::contiguous_range _Range>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ranges_base.h:625:9: note: because 'int &' does not satisfy 'random_access_range'
625 | = random_access_range<_Tp> && contiguous_iterator<iterator_t<_Tp>>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ranges_base.h:620:9: note: because 'int &' does not satisfy 'bidirectional_range'
620 | = bidirectional_range<_Tp> && random_access_iterator<iterator_t<_Tp>>;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ranges_base.h:615:9: note: because 'int &' does not satisfy 'forward_range'
615 | = forward_range<_Tp> && bidirectional_iterator<iterator_t<_Tp>>;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ranges_base.h:610:9: note: because 'int &' does not satisfy 'input_range'
610 | = input_range<_Tp> && forward_iterator<iterator_t<_Tp>>;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ranges_base.h:605:27: note: because 'int &' does not satisfy 'range'
605 | concept input_range = range<_Tp> && input_iterator<iterator_t<_Tp>>;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ranges_base.h:516:2: note: because 'ranges::begin(__t)' would be invalid: no matching function for call to object of type 'const ranges::__access::_Begin'
516 | ranges::begin(__t);
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:177:7: note: candidate function template not viable: requires 0 arguments, but 1 was provided
177 | span() noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:177:7: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> span() -> span<_Type, _Extent> requires (_Extent == dynamic_extent || _Extent == 0)'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:185:2: note: candidate function template not viable: requires 2 arguments, but 1 was provided
185 | span(_It __first, size_type __count)
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:185:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, contiguous_iterator<> _It> requires __is_compatible_ref<iter_reference_t<_It>>::value explicit(extent != dynamic_extent) span(_It __first, size_type __count) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:194:2: note: candidate function template not viable: requires 2 arguments, but 1 was provided
194 | span(_It __first, _End __last)
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:194:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, contiguous_iterator<> _It, sized_sentinel_for<_It> _End> requires __is_compatible_ref<iter_reference_t<_It>>::value && (! is_convertible_v<_End, size_type>) explicit(extent != dynamic_extent) span(_It __first, _End __last) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:492:5: note: candidate function template not viable: requires 2 arguments, but 1 was provided
492 | span(_Iter, _End)
| ^ ~~~~~~~~~~~
MLModelSelection.cpp:111:46: error: reference to 'span' is ambiguous
111 | rowvec X_row(X(span(i), span(t), span::all));
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: candidate found by name lookup is 'std::span'
124 | class span
| ^
/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RcppArmadillo/include/current/armadillo_bits/span.hpp:38:8: note: candidate found by name lookup is 'arma::span'
38 | struct span : public span_base<>
| ^
MLModelSelection.cpp:203:58: error: reference to 'span' is ambiguous
203 | F(l, m) = cos(F_tmp(l, m))*prod(sin(F_tmp(l, span(0, m-1) )));
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: candidate found by name lookup is 'std::span'
124 | class span
| ^
/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RcppArmadillo/include/current/armadillo_bits/span.hpp:38:8: note: candidate found by name lookup is 'arma::span'
38 | struct span : public span_base<>
| ^
MLModelSelection.cpp:203:58: error: no viable constructor or deduction guide for deduction of template arguments of 'span'
203 | F(l, m) = cos(F_tmp(l, m))*prod(sin(F_tmp(l, span(0, m-1) )));
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:185:2: note: candidate template ignored: couldn't infer template argument '_Type'
185 | span(_It __first, size_type __count)
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:185:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, contiguous_iterator<> _It> requires __is_compatible_ref<iter_reference_t<_It>>::value explicit(extent != dynamic_extent) span(_It __first, size_type __count) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:194:2: note: candidate template ignored: couldn't infer template argument '_Type'
194 | span(_It __first, _End __last)
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:194:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, contiguous_iterator<> _It, sized_sentinel_for<_It> _End> requires __is_compatible_ref<iter_reference_t<_It>>::value && (! is_convertible_v<_End, size_type>) explicit(extent != dynamic_extent) span(_It __first, _End __last) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:492:5: note: candidate template ignored: constraints not satisfied [with _Iter = int, _End = int]
492 | span(_Iter, _End)
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:491:12: note: because 'int' does not satisfy 'contiguous_iterator'
491 | template<contiguous_iterator _Iter, typename _End>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/iterator_concepts.h:735:35: note: because 'int' does not satisfy 'random_access_iterator'
735 | concept contiguous_iterator = random_access_iterator<_Iter>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/iterator_concepts.h:719:38: note: because 'int' does not satisfy 'bidirectional_iterator'
719 | concept random_access_iterator = bidirectional_iterator<_Iter>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/iterator_concepts.h:709:38: note: because 'int' does not satisfy 'forward_iterator'
709 | concept bidirectional_iterator = forward_iterator<_Iter>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/iterator_concepts.h:704:32: note: because 'int' does not satisfy 'input_iterator'
704 | concept forward_iterator = input_iterator<_Iter>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/iterator_concepts.h:693:30: note: because 'int' does not satisfy 'input_or_output_iterator'
693 | concept input_iterator = input_or_output_iterator<_Iter>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/iterator_concepts.h:672:33: note: because '*__i' would be invalid: indirection requires pointer operand ('int' invalid)
672 | = requires(_Iter __i) { { *__i } -> __detail::__can_reference; }
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:203:2: note: candidate function template not viable: requires single argument '__arr', but 2 arguments were provided
203 | span(type_identity_t<element_type> (&__arr)[_ArrayExtent]) noexcept
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:203:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, size_t _ArrayExtent> requires (_Extent == dynamic_extent || _ArrayExtent == _Extent) span(type_identity_t<element_type> (&__arr)[_ArrayExtent]) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:210:2: note: candidate function template not viable: requires single argument '__arr', but 2 arguments were provided
210 | span(array<_Tp, _ArrayExtent>& __arr) noexcept
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:210:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _Tp, size_t _ArrayExtent> requires __is_compatible_array<_Tp, _ArrayExtent>::value span(array<_Tp, _ArrayExtent> &__arr) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:217:2: note: candidate function template not viable: requires single argument '__arr', but 2 arguments were provided
217 | span(const array<_Tp, _ArrayExtent>& __arr) noexcept
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:217:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _Tp, size_t _ArrayExtent> requires __is_compatible_array<const _Tp, _ArrayExtent>::value span(const array<_Tp, _ArrayExtent> &__arr) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:229:2: note: candidate function template not viable: requires single argument '__range', but 2 arguments were provided
229 | span(_Range&& __range)
| ^ ~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:229:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _Range> requires (! __detail::__is_span<remove_cvref_t<_Range>>) && (! __detail::__is_std_array<remove_cvref_t<_Range>>) && (! is_array_v<remove_cvref_t<_Range>>) && ranges::contiguous_range<_Range> && ranges::sized_range<_Range> && (ranges::borrowed_range<_Range> || is_const_v<element_type>) && __is_compatible_ref<ranges::range_reference_t<_Range>>::value explicit(extent != dynamic_extent) span(_Range &&__range) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:248:7: note: candidate function template not viable: requires 1 argument, but 2 were provided
248 | span(const span&) noexcept = default;
| ^ ~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:248:7: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> span(const span<_Type, _Extent> &) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:256:2: note: candidate function template not viable: requires single argument '__s', but 2 arguments were provided
256 | span(const span<_OType, _OExtent>& __s) noexcept
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:256:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _OType, size_t _OExtent> requires (_Extent == dynamic_extent || _OExtent == dynamic_extent || _Extent == _OExtent) && (__is_array_convertible<_Type, _OType>::value) explicit(extent != dynamic_extent && _OExtent == dynamic_extent) span(const span<_OType, _OExtent> &__s) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:470:7: note: candidate function template not viable: requires single argument '__ptr', but 2 arguments were provided
470 | span(_SizedPtr __ptr) noexcept
| ^ ~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:470:7: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> explicit span(_SizedPtr __ptr) -> span<_Type, _Extent> requires (extent != dynamic_extent)'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: candidate function template not viable: requires 1 argument, but 2 were provided
124 | class span
| ^~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> span(span<_Type, _Extent>) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:482:5: note: candidate function template not viable: requires 1 argument, but 2 were provided
482 | span(_Type(&)[_ArrayExtent]) -> span<_Type, _ArrayExtent>;
| ^ ~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:485:5: note: candidate function template not viable: requires 1 argument, but 2 were provided
485 | span(array<_Type, _ArrayExtent>&) -> span<_Type, _ArrayExtent>;
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:488:5: note: candidate function template not viable: requires 1 argument, but 2 were provided
488 | span(const array<_Type, _ArrayExtent>&)
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:496:5: note: candidate function template not viable: requires 1 argument, but 2 were provided
496 | span(_Range &&)
| ^ ~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:177:7: note: candidate function template not viable: requires 0 arguments, but 2 were provided
177 | span() noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:177:7: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> span() -> span<_Type, _Extent> requires (_Extent == dynamic_extent || _Extent == 0)'
MLModelSelection.cpp:206:37: error: reference to 'span' is ambiguous
206 | F(m, m) = prod(sin(F_tmp(m, span(0, m-1) )));
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: candidate found by name lookup is 'std::span'
124 | class span
| ^
/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RcppArmadillo/include/current/armadillo_bits/span.hpp:38:8: note: candidate found by name lookup is 'arma::span'
38 | struct span : public span_base<>
| ^
MLModelSelection.cpp:206:37: error: no viable constructor or deduction guide for deduction of template arguments of 'span'
206 | F(m, m) = prod(sin(F_tmp(m, span(0, m-1) )));
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:185:2: note: candidate template ignored: couldn't infer template argument '_Type'
185 | span(_It __first, size_type __count)
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:185:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, contiguous_iterator<> _It> requires __is_compatible_ref<iter_reference_t<_It>>::value explicit(extent != dynamic_extent) span(_It __first, size_type __count) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:194:2: note: candidate template ignored: couldn't infer template argument '_Type'
194 | span(_It __first, _End __last)
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:194:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, contiguous_iterator<> _It, sized_sentinel_for<_It> _End> requires __is_compatible_ref<iter_reference_t<_It>>::value && (! is_convertible_v<_End, size_type>) explicit(extent != dynamic_extent) span(_It __first, _End __last) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:492:5: note: candidate template ignored: constraints not satisfied [with _Iter = int, _End = int]
492 | span(_Iter, _End)
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:491:12: note: because 'int' does not satisfy 'contiguous_iterator'
491 | template<contiguous_iterator _Iter, typename _End>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/iterator_concepts.h:735:35: note: because 'int' does not satisfy 'random_access_iterator'
735 | concept contiguous_iterator = random_access_iterator<_Iter>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/iterator_concepts.h:719:38: note: because 'int' does not satisfy 'bidirectional_iterator'
719 | concept random_access_iterator = bidirectional_iterator<_Iter>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/iterator_concepts.h:709:38: note: because 'int' does not satisfy 'forward_iterator'
709 | concept bidirectional_iterator = forward_iterator<_Iter>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/iterator_concepts.h:704:32: note: because 'int' does not satisfy 'input_iterator'
704 | concept forward_iterator = input_iterator<_Iter>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/iterator_concepts.h:693:30: note: because 'int' does not satisfy 'input_or_output_iterator'
693 | concept input_iterator = input_or_output_iterator<_Iter>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/iterator_concepts.h:672:33: note: because '*__i' would be invalid: indirection requires pointer operand ('int' invalid)
672 | = requires(_Iter __i) { { *__i } -> __detail::__can_reference; }
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:203:2: note: candidate function template not viable: requires single argument '__arr', but 2 arguments were provided
203 | span(type_identity_t<element_type> (&__arr)[_ArrayExtent]) noexcept
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:203:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, size_t _ArrayExtent> requires (_Extent == dynamic_extent || _ArrayExtent == _Extent) span(type_identity_t<element_type> (&__arr)[_ArrayExtent]) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:210:2: note: candidate function template not viable: requires single argument '__arr', but 2 arguments were provided
210 | span(array<_Tp, _ArrayExtent>& __arr) noexcept
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:210:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _Tp, size_t _ArrayExtent> requires __is_compatible_array<_Tp, _ArrayExtent>::value span(array<_Tp, _ArrayExtent> &__arr) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:217:2: note: candidate function template not viable: requires single argument '__arr', but 2 arguments were provided
217 | span(const array<_Tp, _ArrayExtent>& __arr) noexcept
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:217:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _Tp, size_t _ArrayExtent> requires __is_compatible_array<const _Tp, _ArrayExtent>::value span(const array<_Tp, _ArrayExtent> &__arr) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:229:2: note: candidate function template not viable: requires single argument '__range', but 2 arguments were provided
229 | span(_Range&& __range)
| ^ ~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:229:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _Range> requires (! __detail::__is_span<remove_cvref_t<_Range>>) && (! __detail::__is_std_array<remove_cvref_t<_Range>>) && (! is_array_v<remove_cvref_t<_Range>>) && ranges::contiguous_range<_Range> && ranges::sized_range<_Range> && (ranges::borrowed_range<_Range> || is_const_v<element_type>) && __is_compatible_ref<ranges::range_reference_t<_Range>>::value explicit(extent != dynamic_extent) span(_Range &&__range) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:248:7: note: candidate function template not viable: requires 1 argument, but 2 were provided
248 | span(const span&) noexcept = default;
| ^ ~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:248:7: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> span(const span<_Type, _Extent> &) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:256:2: note: candidate function template not viable: requires single argument '__s', but 2 arguments were provided
256 | span(const span<_OType, _OExtent>& __s) noexcept
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:256:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _OType, size_t _OExtent> requires (_Extent == dynamic_extent || _OExtent == dynamic_extent || _Extent == _OExtent) && (__is_array_convertible<_Type, _OType>::value) explicit(extent != dynamic_extent && _OExtent == dynamic_extent) span(const span<_OType, _OExtent> &__s) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:470:7: note: candidate function template not viable: requires single argument '__ptr', but 2 arguments were provided
470 | span(_SizedPtr __ptr) noexcept
| ^ ~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:470:7: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> explicit span(_SizedPtr __ptr) -> span<_Type, _Extent> requires (extent != dynamic_extent)'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: candidate function template not viable: requires 1 argument, but 2 were provided
124 | class span
| ^~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> span(span<_Type, _Extent>) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:482:5: note: candidate function template not viable: requires 1 argument, but 2 were provided
482 | span(_Type(&)[_ArrayExtent]) -> span<_Type, _ArrayExtent>;
| ^ ~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:485:5: note: candidate function template not viable: requires 1 argument, but 2 were provided
485 | span(array<_Type, _ArrayExtent>&) -> span<_Type, _ArrayExtent>;
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:488:5: note: candidate function template not viable: requires 1 argument, but 2 were provided
488 | span(const array<_Type, _ArrayExtent>&)
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:496:5: note: candidate function template not viable: requires 1 argument, but 2 were provided
496 | span(_Range &&)
| ^ ~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:177:7: note: candidate function template not viable: requires 0 arguments, but 2 were provided
177 | span() noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:177:7: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> span() -> span<_Type, _Extent> requires (_Extent == dynamic_extent || _Extent == 0)'
MLModelSelection.cpp:361:32: error: reference to 'span' is ambiguous
361 | yi = vectorise((mat)Y(span(i), span(0, tp-1), span::all), 1).t();
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: candidate found by name lookup is 'std::span'
124 | class span
| ^
/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RcppArmadillo/include/current/armadillo_bits/span.hpp:38:8: note: candidate found by name lookup is 'arma::span'
38 | struct span : public span_base<>
| ^
MLModelSelection.cpp:361:32: error: no viable constructor or deduction guide for deduction of template arguments of 'span'
361 | yi = vectorise((mat)Y(span(i), span(0, tp-1), span::all), 1).t();
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:229:2: note: candidate template ignored: couldn't infer template argument '_Type'
229 | span(_Range&& __range)
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:229:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _Range> requires (! __detail::__is_span<remove_cvref_t<_Range>>) && (! __detail::__is_std_array<remove_cvref_t<_Range>>) && (! is_array_v<remove_cvref_t<_Range>>) && ranges::contiguous_range<_Range> && ranges::sized_range<_Range> && (ranges::borrowed_range<_Range> || is_const_v<element_type>) && __is_compatible_ref<ranges::range_reference_t<_Range>>::value explicit(extent != dynamic_extent) span(_Range &&__range) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: candidate template ignored: could not match 'span<_Type, _Extent>' against 'int'
124 | class span
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> span(span<_Type, _Extent>) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:203:2: note: candidate template ignored: could not match 'type_identity_t<element_type>[_ArrayExtent]' (aka 'typename type_identity<element_type>::type[_ArrayExtent]') against 'int'
203 | span(type_identity_t<element_type> (&__arr)[_ArrayExtent]) noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:203:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, size_t _ArrayExtent> requires (_Extent == dynamic_extent || _ArrayExtent == _Extent) span(type_identity_t<element_type> (&__arr)[_ArrayExtent]) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:210:2: note: candidate template ignored: could not match 'array<_Tp, _ArrayExtent>' against 'int'
210 | span(array<_Tp, _ArrayExtent>& __arr) noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:210:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _Tp, size_t _ArrayExtent> requires __is_compatible_array<_Tp, _ArrayExtent>::value span(array<_Tp, _ArrayExtent> &__arr) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:217:2: note: candidate template ignored: could not match 'array<_Tp, _ArrayExtent>' against 'int'
217 | span(const array<_Tp, _ArrayExtent>& __arr) noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:217:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _Tp, size_t _ArrayExtent> requires __is_compatible_array<const _Tp, _ArrayExtent>::value span(const array<_Tp, _ArrayExtent> &__arr) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:248:7: note: candidate template ignored: could not match 'span<_Type, _Extent>' against 'int'
248 | span(const span&) noexcept = default;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:248:7: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> span(const span<_Type, _Extent> &) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:256:2: note: candidate template ignored: could not match 'span<_OType, _OExtent>' against 'int'
256 | span(const span<_OType, _OExtent>& __s) noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:256:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _OType, size_t _OExtent> requires (_Extent == dynamic_extent || _OExtent == dynamic_extent || _Extent == _OExtent) && (__is_array_convertible<_Type, _OType>::value) explicit(extent != dynamic_extent && _OExtent == dynamic_extent) span(const span<_OType, _OExtent> &__s) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:470:7: note: candidate template ignored: could not match '_SizedPtr' (aka '__span_ptr<_Type>') against 'int'
470 | span(_SizedPtr __ptr) noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:470:7: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> explicit span(_SizedPtr __ptr) -> span<_Type, _Extent> requires (extent != dynamic_extent)'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:482:5: note: candidate template ignored: could not match '_Type[_ArrayExtent]' against 'int'
482 | span(_Type(&)[_ArrayExtent]) -> span<_Type, _ArrayExtent>;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:485:5: note: candidate template ignored: could not match 'array<_Type, _ArrayExtent>' against 'int'
485 | span(array<_Type, _ArrayExtent>&) -> span<_Type, _ArrayExtent>;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:488:5: note: candidate template ignored: could not match 'array<_Type, _ArrayExtent>' against 'int'
488 | span(const array<_Type, _ArrayExtent>&)
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:496:5: note: candidate template ignored: constraints not satisfied [with _Range = int &]
496 | span(_Range &&)
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:495:12: note: because 'int &' does not satisfy 'contiguous_range'
495 | template<ranges::contiguous_range _Range>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ranges_base.h:625:9: note: because 'int &' does not satisfy 'random_access_range'
625 | = random_access_range<_Tp> && contiguous_iterator<iterator_t<_Tp>>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ranges_base.h:620:9: note: because 'int &' does not satisfy 'bidirectional_range'
620 | = bidirectional_range<_Tp> && random_access_iterator<iterator_t<_Tp>>;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ranges_base.h:615:9: note: because 'int &' does not satisfy 'forward_range'
615 | = forward_range<_Tp> && bidirectional_iterator<iterator_t<_Tp>>;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ranges_base.h:610:9: note: because 'int &' does not satisfy 'input_range'
610 | = input_range<_Tp> && forward_iterator<iterator_t<_Tp>>;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ranges_base.h:605:27: note: because 'int &' does not satisfy 'range'
605 | concept input_range = range<_Tp> && input_iterator<iterator_t<_Tp>>;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ranges_base.h:516:2: note: because 'ranges::begin(__t)' would be invalid: no matching function for call to object of type 'const ranges::__access::_Begin'
516 | ranges::begin(__t);
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:177:7: note: candidate function template not viable: requires 0 arguments, but 1 was provided
177 | span() noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:177:7: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> span() -> span<_Type, _Extent> requires (_Extent == dynamic_extent || _Extent == 0)'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:185:2: note: candidate function template not viable: requires 2 arguments, but 1 was provided
185 | span(_It __first, size_type __count)
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:185:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, contiguous_iterator<> _It> requires __is_compatible_ref<iter_reference_t<_It>>::value explicit(extent != dynamic_extent) span(_It __first, size_type __count) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:194:2: note: candidate function template not viable: requires 2 arguments, but 1 was provided
194 | span(_It __first, _End __last)
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:194:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, contiguous_iterator<> _It, sized_sentinel_for<_It> _End> requires __is_compatible_ref<iter_reference_t<_It>>::value && (! is_convertible_v<_End, size_type>) explicit(extent != dynamic_extent) span(_It __first, _End __last) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:492:5: note: candidate function template not viable: requires 2 arguments, but 1 was provided
492 | span(_Iter, _End)
| ^ ~~~~~~~~~~~
MLModelSelection.cpp:361:41: error: reference to 'span' is ambiguous
361 | yi = vectorise((mat)Y(span(i), span(0, tp-1), span::all), 1).t();
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: candidate found by name lookup is 'std::span'
124 | class span
| ^
/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RcppArmadillo/include/current/armadillo_bits/span.hpp:38:8: note: candidate found by name lookup is 'arma::span'
38 | struct span : public span_base<>
| ^
MLModelSelection.cpp:361:41: error: no viable constructor or deduction guide for deduction of template arguments of 'span'
361 | yi = vectorise((mat)Y(span(i), span(0, tp-1), span::all), 1).t();
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:185:2: note: candidate template ignored: couldn't infer template argument '_Type'
185 | span(_It __first, size_type __count)
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:185:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, contiguous_iterator<> _It> requires __is_compatible_ref<iter_reference_t<_It>>::value explicit(extent != dynamic_extent) span(_It __first, size_type __count) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:194:2: note: candidate template ignored: couldn't infer template argument '_Type'
194 | span(_It __first, _End __last)
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:194:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, contiguous_iterator<> _It, sized_sentinel_for<_It> _End> requires __is_compatible_ref<iter_reference_t<_It>>::value && (! is_convertible_v<_End, size_type>) explicit(extent != dynamic_extent) span(_It __first, _End __last) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:492:5: note: candidate template ignored: constraints not satisfied [with _Iter = int, _End = int]
492 | span(_Iter, _End)
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:491:12: note: because 'int' does not satisfy 'contiguous_iterator'
491 | template<contiguous_iterator _Iter, typename _End>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/iterator_concepts.h:735:35: note: because 'int' does not satisfy 'random_access_iterator'
735 | concept contiguous_iterator = random_access_iterator<_Iter>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/iterator_concepts.h:719:38: note: because 'int' does not satisfy 'bidirectional_iterator'
719 | concept random_access_iterator = bidirectional_iterator<_Iter>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/iterator_concepts.h:709:38: note: because 'int' does not satisfy 'forward_iterator'
709 | concept bidirectional_iterator = forward_iterator<_Iter>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/iterator_concepts.h:704:32: note: because 'int' does not satisfy 'input_iterator'
704 | concept forward_iterator = input_iterator<_Iter>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/iterator_concepts.h:693:30: note: because 'int' does not satisfy 'input_or_output_iterator'
693 | concept input_iterator = input_or_output_iterator<_Iter>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/iterator_concepts.h:672:33: note: because '*__i' would be invalid: indirection requires pointer operand ('int' invalid)
672 | = requires(_Iter __i) { { *__i } -> __detail::__can_reference; }
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:203:2: note: candidate function template not viable: requires single argument '__arr', but 2 arguments were provided
203 | span(type_identity_t<element_type> (&__arr)[_ArrayExtent]) noexcept
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:203:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, size_t _ArrayExtent> requires (_Extent == dynamic_extent || _ArrayExtent == _Extent) span(type_identity_t<element_type> (&__arr)[_ArrayExtent]) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:210:2: note: candidate function template not viable: requires single argument '__arr', but 2 arguments were provided
210 | span(array<_Tp, _ArrayExtent>& __arr) noexcept
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:210:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _Tp, size_t _ArrayExtent> requires __is_compatible_array<_Tp, _ArrayExtent>::value span(array<_Tp, _ArrayExtent> &__arr) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:217:2: note: candidate function template not viable: requires single argument '__arr', but 2 arguments were provided
217 | span(const array<_Tp, _ArrayExtent>& __arr) noexcept
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:217:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _Tp, size_t _ArrayExtent> requires __is_compatible_array<const _Tp, _ArrayExtent>::value span(const array<_Tp, _ArrayExtent> &__arr) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:229:2: note: candidate function template not viable: requires single argument '__range', but 2 arguments were provided
229 | span(_Range&& __range)
| ^ ~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:229:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _Range> requires (! __detail::__is_span<remove_cvref_t<_Range>>) && (! __detail::__is_std_array<remove_cvref_t<_Range>>) && (! is_array_v<remove_cvref_t<_Range>>) && ranges::contiguous_range<_Range> && ranges::sized_range<_Range> && (ranges::borrowed_range<_Range> || is_const_v<element_type>) && __is_compatible_ref<ranges::range_reference_t<_Range>>::value explicit(extent != dynamic_extent) span(_Range &&__range) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:248:7: note: candidate function template not viable: requires 1 argument, but 2 were provided
248 | span(const span&) noexcept = default;
| ^ ~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:248:7: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> span(const span<_Type, _Extent> &) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:256:2: note: candidate function template not viable: requires single argument '__s', but 2 arguments were provided
256 | span(const span<_OType, _OExtent>& __s) noexcept
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:256:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _OType, size_t _OExtent> requires (_Extent == dynamic_extent || _OExtent == dynamic_extent || _Extent == _OExtent) && (__is_array_convertible<_Type, _OType>::value) explicit(extent != dynamic_extent && _OExtent == dynamic_extent) span(const span<_OType, _OExtent> &__s) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:470:7: note: candidate function template not viable: requires single argument '__ptr', but 2 arguments were provided
470 | span(_SizedPtr __ptr) noexcept
| ^ ~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:470:7: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> explicit span(_SizedPtr __ptr) -> span<_Type, _Extent> requires (extent != dynamic_extent)'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: candidate function template not viable: requires 1 argument, but 2 were provided
124 | class span
| ^~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> span(span<_Type, _Extent>) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:482:5: note: candidate function template not viable: requires 1 argument, but 2 were provided
482 | span(_Type(&)[_ArrayExtent]) -> span<_Type, _ArrayExtent>;
| ^ ~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:485:5: note: candidate function template not viable: requires 1 argument, but 2 were provided
485 | span(array<_Type, _ArrayExtent>&) -> span<_Type, _ArrayExtent>;
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:488:5: note: candidate function template not viable: requires 1 argument, but 2 were provided
488 | span(const array<_Type, _ArrayExtent>&)
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:496:5: note: candidate function template not viable: requires 1 argument, but 2 were provided
496 | span(_Range &&)
| ^ ~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:177:7: note: candidate function template not viable: requires 0 arguments, but 2 were provided
177 | span() noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:177:7: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> span() -> span<_Type, _Extent> requires (_Extent == dynamic_extent || _Extent == 0)'
MLModelSelection.cpp:361:56: error: reference to 'span' is ambiguous
361 | yi = vectorise((mat)Y(span(i), span(0, tp-1), span::all), 1).t();
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: candidate found by name lookup is 'std::span'
124 | class span
| ^
/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RcppArmadillo/include/current/armadillo_bits/span.hpp:38:8: note: candidate found by name lookup is 'arma::span'
38 | struct span : public span_base<>
| ^
MLModelSelection.cpp:426:48: error: reference to 'span' is ambiguous
426 | yi = vectorise((mat)Y(span(i), span(0, tp-1), span::all), 1).t();
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: candidate found by name lookup is 'std::span'
124 | class span
| ^
/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RcppArmadillo/include/current/armadillo_bits/span.hpp:38:8: note: candidate found by name lookup is 'arma::span'
38 | struct span : public span_base<>
| ^
MLModelSelection.cpp:426:48: error: no viable constructor or deduction guide for deduction of template arguments of 'span'
426 | yi = vectorise((mat)Y(span(i), span(0, tp-1), span::all), 1).t();
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:229:2: note: candidate template ignored: couldn't infer template argument '_Type'
229 | span(_Range&& __range)
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:229:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _Range> requires (! __detail::__is_span<remove_cvref_t<_Range>>) && (! __detail::__is_std_array<remove_cvref_t<_Range>>) && (! is_array_v<remove_cvref_t<_Range>>) && ranges::contiguous_range<_Range> && ranges::sized_range<_Range> && (ranges::borrowed_range<_Range> || is_const_v<element_type>) && __is_compatible_ref<ranges::range_reference_t<_Range>>::value explicit(extent != dynamic_extent) span(_Range &&__range) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: candidate template ignored: could not match 'span<_Type, _Extent>' against 'int'
124 | class span
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> span(span<_Type, _Extent>) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:203:2: note: candidate template ignored: could not match 'type_identity_t<element_type>[_ArrayExtent]' (aka 'typename type_identity<element_type>::type[_ArrayExtent]') against 'int'
203 | span(type_identity_t<element_type> (&__arr)[_ArrayExtent]) noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:203:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, size_t _ArrayExtent> requires (_Extent == dynamic_extent || _ArrayExtent == _Extent) span(type_identity_t<element_type> (&__arr)[_ArrayExtent]) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:210:2: note: candidate template ignored: could not match 'array<_Tp, _ArrayExtent>' against 'int'
210 | span(array<_Tp, _ArrayExtent>& __arr) noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:210:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _Tp, size_t _ArrayExtent> requires __is_compatible_array<_Tp, _ArrayExtent>::value span(array<_Tp, _ArrayExtent> &__arr) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:217:2: note: candidate template ignored: could not match 'array<_Tp, _ArrayExtent>' against 'int'
217 | span(const array<_Tp, _ArrayExtent>& __arr) noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:217:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _Tp, size_t _ArrayExtent> requires __is_compatible_array<const _Tp, _ArrayExtent>::value span(const array<_Tp, _ArrayExtent> &__arr) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:248:7: note: candidate template ignored: could not match 'span<_Type, _Extent>' against 'int'
248 | span(const span&) noexcept = default;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:248:7: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> span(const span<_Type, _Extent> &) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:256:2: note: candidate template ignored: could not match 'span<_OType, _OExtent>' against 'int'
256 | span(const span<_OType, _OExtent>& __s) noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:256:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _OType, size_t _OExtent> requires (_Extent == dynamic_extent || _OExtent == dynamic_extent || _Extent == _OExtent) && (__is_array_convertible<_Type, _OType>::value) explicit(extent != dynamic_extent && _OExtent == dynamic_extent) span(const span<_OType, _OExtent> &__s) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:470:7: note: candidate template ignored: could not match '_SizedPtr' (aka '__span_ptr<_Type>') against 'int'
470 | span(_SizedPtr __ptr) noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:470:7: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> explicit span(_SizedPtr __ptr) -> span<_Type, _Extent> requires (extent != dynamic_extent)'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:482:5: note: candidate template ignored: could not match '_Type[_ArrayExtent]' against 'int'
482 | span(_Type(&)[_ArrayExtent]) -> span<_Type, _ArrayExtent>;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:485:5: note: candidate template ignored: could not match 'array<_Type, _ArrayExtent>' against 'int'
485 | span(array<_Type, _ArrayExtent>&) -> span<_Type, _ArrayExtent>;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:488:5: note: candidate template ignored: could not match 'array<_Type, _ArrayExtent>' against 'int'
488 | span(const array<_Type, _ArrayExtent>&)
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:496:5: note: candidate template ignored: constraints not satisfied [with _Range = int &]
496 | span(_Range &&)
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:495:12: note: because 'int &' does not satisfy 'contiguous_range'
495 | template<ranges::contiguous_range _Range>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ranges_base.h:625:9: note: because 'int &' does not satisfy 'random_access_range'
625 | = random_access_range<_Tp> && contiguous_iterator<iterator_t<_Tp>>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ranges_base.h:620:9: note: because 'int &' does not satisfy 'bidirectional_range'
620 | = bidirectional_range<_Tp> && random_access_iterator<iterator_t<_Tp>>;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ranges_base.h:615:9: note: because 'int &' does not satisfy 'forward_range'
615 | = forward_range<_Tp> && bidirectional_iterator<iterator_t<_Tp>>;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ranges_base.h:610:9: note: because 'int &' does not satisfy 'input_range'
610 | = input_range<_Tp> && forward_iterator<iterator_t<_Tp>>;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ranges_base.h:605:27: note: because 'int &' does not satisfy 'range'
605 | concept input_range = range<_Tp> && input_iterator<iterator_t<_Tp>>;
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/ranges_base.h:516:2: note: because 'ranges::begin(__t)' would be invalid: no matching function for call to object of type 'const ranges::__access::_Begin'
516 | ranges::begin(__t);
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:177:7: note: candidate function template not viable: requires 0 arguments, but 1 was provided
177 | span() noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:177:7: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> span() -> span<_Type, _Extent> requires (_Extent == dynamic_extent || _Extent == 0)'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:185:2: note: candidate function template not viable: requires 2 arguments, but 1 was provided
185 | span(_It __first, size_type __count)
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:185:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, contiguous_iterator<> _It> requires __is_compatible_ref<iter_reference_t<_It>>::value explicit(extent != dynamic_extent) span(_It __first, size_type __count) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:194:2: note: candidate function template not viable: requires 2 arguments, but 1 was provided
194 | span(_It __first, _End __last)
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:194:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, contiguous_iterator<> _It, sized_sentinel_for<_It> _End> requires __is_compatible_ref<iter_reference_t<_It>>::value && (! is_convertible_v<_End, size_type>) explicit(extent != dynamic_extent) span(_It __first, _End __last) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:492:5: note: candidate function template not viable: requires 2 arguments, but 1 was provided
492 | span(_Iter, _End)
| ^ ~~~~~~~~~~~
MLModelSelection.cpp:426:57: error: reference to 'span' is ambiguous
426 | yi = vectorise((mat)Y(span(i), span(0, tp-1), span::all), 1).t();
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: candidate found by name lookup is 'std::span'
124 | class span
| ^
/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RcppArmadillo/include/current/armadillo_bits/span.hpp:38:8: note: candidate found by name lookup is 'arma::span'
38 | struct span : public span_base<>
| ^
MLModelSelection.cpp:426:57: error: no viable constructor or deduction guide for deduction of template arguments of 'span'
426 | yi = vectorise((mat)Y(span(i), span(0, tp-1), span::all), 1).t();
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:185:2: note: candidate template ignored: couldn't infer template argument '_Type'
185 | span(_It __first, size_type __count)
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:185:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, contiguous_iterator<> _It> requires __is_compatible_ref<iter_reference_t<_It>>::value explicit(extent != dynamic_extent) span(_It __first, size_type __count) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:194:2: note: candidate template ignored: couldn't infer template argument '_Type'
194 | span(_It __first, _End __last)
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:194:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, contiguous_iterator<> _It, sized_sentinel_for<_It> _End> requires __is_compatible_ref<iter_reference_t<_It>>::value && (! is_convertible_v<_End, size_type>) explicit(extent != dynamic_extent) span(_It __first, _End __last) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:492:5: note: candidate template ignored: constraints not satisfied [with _Iter = int, _End = int]
492 | span(_Iter, _End)
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:491:12: note: because 'int' does not satisfy 'contiguous_iterator'
491 | template<contiguous_iterator _Iter, typename _End>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/iterator_concepts.h:735:35: note: because 'int' does not satisfy 'random_access_iterator'
735 | concept contiguous_iterator = random_access_iterator<_Iter>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/iterator_concepts.h:719:38: note: because 'int' does not satisfy 'bidirectional_iterator'
719 | concept random_access_iterator = bidirectional_iterator<_Iter>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/iterator_concepts.h:709:38: note: because 'int' does not satisfy 'forward_iterator'
709 | concept bidirectional_iterator = forward_iterator<_Iter>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/iterator_concepts.h:704:32: note: because 'int' does not satisfy 'input_iterator'
704 | concept forward_iterator = input_iterator<_Iter>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/iterator_concepts.h:693:30: note: because 'int' does not satisfy 'input_or_output_iterator'
693 | concept input_iterator = input_or_output_iterator<_Iter>
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/iterator_concepts.h:672:33: note: because '*__i' would be invalid: indirection requires pointer operand ('int' invalid)
672 | = requires(_Iter __i) { { *__i } -> __detail::__can_reference; }
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:203:2: note: candidate function template not viable: requires single argument '__arr', but 2 arguments were provided
203 | span(type_identity_t<element_type> (&__arr)[_ArrayExtent]) noexcept
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:203:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, size_t _ArrayExtent> requires (_Extent == dynamic_extent || _ArrayExtent == _Extent) span(type_identity_t<element_type> (&__arr)[_ArrayExtent]) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:210:2: note: candidate function template not viable: requires single argument '__arr', but 2 arguments were provided
210 | span(array<_Tp, _ArrayExtent>& __arr) noexcept
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:210:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _Tp, size_t _ArrayExtent> requires __is_compatible_array<_Tp, _ArrayExtent>::value span(array<_Tp, _ArrayExtent> &__arr) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:217:2: note: candidate function template not viable: requires single argument '__arr', but 2 arguments were provided
217 | span(const array<_Tp, _ArrayExtent>& __arr) noexcept
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:217:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _Tp, size_t _ArrayExtent> requires __is_compatible_array<const _Tp, _ArrayExtent>::value span(const array<_Tp, _ArrayExtent> &__arr) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:229:2: note: candidate function template not viable: requires single argument '__range', but 2 arguments were provided
229 | span(_Range&& __range)
| ^ ~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:229:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _Range> requires (! __detail::__is_span<remove_cvref_t<_Range>>) && (! __detail::__is_std_array<remove_cvref_t<_Range>>) && (! is_array_v<remove_cvref_t<_Range>>) && ranges::contiguous_range<_Range> && ranges::sized_range<_Range> && (ranges::borrowed_range<_Range> || is_const_v<element_type>) && __is_compatible_ref<ranges::range_reference_t<_Range>>::value explicit(extent != dynamic_extent) span(_Range &&__range) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:248:7: note: candidate function template not viable: requires 1 argument, but 2 were provided
248 | span(const span&) noexcept = default;
| ^ ~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:248:7: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> span(const span<_Type, _Extent> &) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:256:2: note: candidate function template not viable: requires single argument '__s', but 2 arguments were provided
256 | span(const span<_OType, _OExtent>& __s) noexcept
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:256:2: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent, typename _OType, size_t _OExtent> requires (_Extent == dynamic_extent || _OExtent == dynamic_extent || _Extent == _OExtent) && (__is_array_convertible<_Type, _OType>::value) explicit(extent != dynamic_extent && _OExtent == dynamic_extent) span(const span<_OType, _OExtent> &__s) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:470:7: note: candidate function template not viable: requires single argument '__ptr', but 2 arguments were provided
470 | span(_SizedPtr __ptr) noexcept
| ^ ~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:470:7: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> explicit span(_SizedPtr __ptr) -> span<_Type, _Extent> requires (extent != dynamic_extent)'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: candidate function template not viable: requires 1 argument, but 2 were provided
124 | class span
| ^~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> span(span<_Type, _Extent>) -> span<_Type, _Extent>'
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:482:5: note: candidate function template not viable: requires 1 argument, but 2 were provided
482 | span(_Type(&)[_ArrayExtent]) -> span<_Type, _ArrayExtent>;
| ^ ~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:485:5: note: candidate function template not viable: requires 1 argument, but 2 were provided
485 | span(array<_Type, _ArrayExtent>&) -> span<_Type, _ArrayExtent>;
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:488:5: note: candidate function template not viable: requires 1 argument, but 2 were provided
488 | span(const array<_Type, _ArrayExtent>&)
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:496:5: note: candidate function template not viable: requires 1 argument, but 2 were provided
496 | span(_Range &&)
| ^ ~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:177:7: note: candidate function template not viable: requires 0 arguments, but 2 were provided
177 | span() noexcept
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:177:7: note: implicit deduction guide declared as 'template <typename _Type, size_t _Extent = dynamic_extent> span() -> span<_Type, _Extent> requires (_Extent == dynamic_extent || _Extent == 0)'
MLModelSelection.cpp:426:72: error: reference to 'span' is ambiguous
426 | yi = vectorise((mat)Y(span(i), span(0, tp-1), span::all), 1).t();
| ^
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/span:124:11: note: candidate found by name lookup is 'std::span'
124 | class span
| ^
/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/RcppArmadillo/include/current/armadillo_bits/span.hpp:38:8: note: candidate found by name lookup is 'arma::span'
38 | struct span : public span_base<>
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [/home/hornik/tmp/R.check/r-devel-clang/Work/build/etc/Makeconf:201: MLModelSelection.o] Error 1
make[1]: Leaving directory '/home/hornik/tmp/scratch/Rtmp3JG3M9/R.INSTALL3cb2e8490ff340/MLModelSelection/src'
ERROR: compilation failed for package ‘MLModelSelection’
* removing ‘/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/MLModelSelection’