Author
anonymous
over 6 years ago
Language
C++
Compiler
gcc HEAD 10.0.0 20190604 (experimental)
Options
Warnings
Boost 1.70.0
C++17
no pedantic
Author
anonymous
over 6 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.70.0/gcc-head/include -std=c++17
In file included from prog.cc:3:
/opt/wandbox/boost-1.70.0/gcc-head/include/boost/multi_index/key.hpp: In instantiation of 'struct boost::multi_index::detail::key_impl<&S::Get>':
/opt/wandbox/boost-1.70.0/gcc-head/include/boost/multi_index/key.hpp:134:9: required from 'struct boost::multi_index::detail::limited_size_key_impl<&S::Get>'
/opt/wandbox/boost-1.70.0/gcc-head/include/boost/multi_index/key.hpp:140:7: required by substitution of 'template<auto ...Keys> using key = typename boost::multi_index::detail::limited_size_key_impl::type [with auto ...Keys = {&S::Get}]'
prog.cc:18:48: required from here
/opt/wandbox/boost-1.70.0/gcc-head/include/boost/multi_index/key.hpp:77:8: error: invalid use of incomplete type 'struct boost::multi_index::detail::typed_key_impl<int (S::*)() const & noexcept, &S::Get, void>'
77 | struct key_impl<Key>:typed_key_impl<decltype(Key),Key>{};
| ^~~~~~~~~~~~~
/opt/wandbox/boost-1.70.0/gcc-head/include/boost/multi_index/key.hpp:38:8: note: declaration of 'struct boost::multi_index::detail::typed_key_impl<int (S::*)() const & noexcept, &S::Get, void>'
38 | struct typed_key_impl;
| ^~~~~~~~~~~~~~
/opt/wandbox/boost-1.70.0/gcc-head/include/boost/multi_index/key.hpp: In instantiation of 'struct boost::multi_index::detail::limited_size_key_impl<&S::Get>':
/opt/wandbox/boost-1.70.0/gcc-head/include/boost/multi_index/key.hpp:140:7: required by substitution of 'template<auto ...Keys> using key = typename boost::multi_index::detail::limited_size_key_impl::type [with auto ...Keys = {&S::Get}]'
prog.cc:18:48: required from here
/opt/wandbox/boost-1.70.0/gcc-head/include/boost/multi_index/key.hpp:134:9: error: no type named 'type' in 'struct boost::multi_index::detail::key_impl<&S::Get>'
134 | using type=typename key_impl<Keys...>::type;
| ^~~~
prog.cc: In function 'int main()':
prog.cc:19:13: error: template argument 1 is invalid
19 | >
| ^
prog.cc:20:9: error: template argument 1 is invalid
20 | >
| ^
prog.cc:21:5: error: template argument 2 is invalid
21 | > container;
| ^
prog.cc:21:7: warning: unused variable 'container' [-Wunused-variable]
21 | > container;
| ^~~~~~~~~
Exit Code:
1