Author
anonymous
over 4 years ago
Language
C++
Compiler
gcc HEAD 11.0.0 20201204 (experimental)
Options
Warnings
Boost 1.73.0
C++2a(GNU)
no pedantic
Author
anonymous
over 4 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2a
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/iterator_concepts.h:36,
from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/stl_iterator_base_types.h:71,
from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/stl_algobase.h:65,
from /opt/wandbox/gcc-head/include/c++/11.0.0/vector:60,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/ptr_traits.h: In instantiation of 'constexpr auto std::__to_address(const _Ptr&, _None ...) [with _Ptr = std::counted_iterator<int*>; _None = {}]':
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/ptr_traits.h:207:31: required from 'constexpr auto std::to_address(const _Ptr&) [with _Ptr = std::counted_iterator<int*>]'
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/iterator_concepts.h:685:19: required from here
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/ptr_traits.h:181:48: error: 'const class std::counted_iterator<int*>' has no member named 'operator->'; did you mean 'operator--'?
181 | return std::__to_address(__ptr.operator->());
| ~~~~~~~~~~~~~~^~
| operator--
Exit Code:
1