-
-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
range-v3 "ranges::to" not working with "etl::vector" #630
Comments
Could you try changing line 88 in |
I did what you asked: I executed
Just to be sure I executed //***************************************************************************
/// The base class for specifically sized vectors.
/// Can be used as a reference type for all vectors containing a specific type.
///\ingroup vector
//***************************************************************************
template <typename T>
class ivector : public etl::vector_base
{
public:
typedef T value_type;
typedef T& reference;
typedef const T& const_reference;
#if ETL_USING_CPP11
typedef T&& rvalue_reference;
#endif
typedef T* pointer;
typedef const T* const_pointer;
typedef T* iterator;
typedef const T* const_iterator;
typedef ETL_OR_STD::reverse_iterator<iterator> reverse_iterator;
typedef ETL_OR_STD::reverse_iterator<const_iterator> const_reverse_iterator;
typedef size_t size_type;
typedef ptrdiff_t difference_type;
// typedef typename etl::iterator_traits<iterator>::difference_type difference_type;
protected: |
It looks like the ETL may need a specialisation of https://en.cppreference.com/w/cpp/iterator/common_iterator/iterator_traits |
I ran into a similar issuing trying to use |
The following short sample program demonstrates the issue:
Using
ETL 20.35.0
andRange-v3 0.12.0
, the error messages fromgcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
, executinggcc -Ietl/include -Irange-v3/include main.cpp
are:The text was updated successfully, but these errors were encountered: