josuttis / belleviews

bel::views - simple and easy view classes for C++
Other
61 stars 5 forks source link

Problems just including header with gcc 13.x #9

Open correaa opened 10 months ago

correaa commented 10 months ago

The convenience header can be included without problem with gcc 12 https://godbolt.org/z/fGM9foj9x

but it gives compilation errors in gcc 13.x https://godbolt.org/z/sxdeY6zEE

#include <iostream>
#include <ranges>

#include <belleviews.hpp>

int main() {}
In file included from /opt/compiler-explorer/libs/belleviews/trunk/sources/belleviews.hpp:73,
                 from <source>:4:
/opt/compiler-explorer/libs/belleviews/trunk/sources/bellefilter.hpp:194:29: error: 'const_iterator_t' in namespace 'belleviews::_intern' does not name a template type
  194 |     using VIterT = _intern::const_iterator_t<V>;
      |                             ^~~~~~~~~~~~~~~~
/opt/compiler-explorer/libs/belleviews/trunk/sources/bellefilter.hpp:196:5: error: 'VIterT' does not name a type
  196 |     VIterT current_ = VIterT();                           // current position
...