Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

gcc HEAD 10.0.0 20190825 (experimental)

Options
Warnings
Boost 1.71.0
C++2a(GNU)
no pedantic

Author

anonymous

over 5 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.71.0/gcc-head/include -std=gnu++2a
In file included from prog.cc:7:
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple: In instantiation of 'constexpr decltype(auto) std::__apply_impl(_Fn&&, _Tuple&&, std::index_sequence<_Idx ...>) [with _Fn = main()::<lambda(auto:1 ...)>; _Tuple = std::integer_sequence<long unsigned int, 0, 1, 2, 3>; long unsigned int ..._Idx = {0, 1, 2, 3}; std::index_sequence<_Idx ...> = std::integer_sequence<long unsigned int, 0, 1, 2, 3>]':
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1635:31:   required from 'constexpr decltype(auto) std::apply(_Fn&&, _Tuple&&) [with _Fn = main()::<lambda(auto:1 ...)>; _Tuple = std::integer_sequence<long unsigned int, 0, 1, 2, 3>]'
prog.cc:48:35:   required from here
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1625:21: error: no matching function for call to 'get<0>(std::integer_sequence<long unsigned int, 0, 1, 2, 3>)'
 1625 |       std::get<_Idx>(std::forward<_Tuple>(__t))...);
      |       ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/utility:219:5: note: candidate: 'template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(std::pair<_Tp1, _Tp2>&)'
  219 |     get(std::pair<_Tp1, _Tp2>& __in) noexcept
      |     ^~~
/opt/wandbox/gcc-head/include/c++/10.0.0/utility:219:5: note:   template argument deduction/substitution failed:
In file included from prog.cc:7:
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1625:21: note:   'std::integer_sequence<long unsigned int, 0, 1, 2, 3>' is not derived from 'std::pair<_Tp1, _Tp2>'
 1625 |       std::get<_Idx>(std::forward<_Tuple>(__t))...);
      |       ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/utility:224:5: note: candidate: 'template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(std::pair<_Tp1, _Tp2>&&)'
  224 |     get(std::pair<_Tp1, _Tp2>&& __in) noexcept
      |     ^~~
/opt/wandbox/gcc-head/include/c++/10.0.0/utility:224:5: note:   template argument deduction/substitution failed:
In file included from prog.cc:7:
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1625:21: note:   'std::integer_sequence<long unsigned int, 0, 1, 2, 3>' is not derived from 'std::pair<_Tp1, _Tp2>'
 1625 |       std::get<_Idx>(std::forward<_Tuple>(__t))...);
      |       ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/utility:229:5: note: candidate: 'template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(const std::pair<_Tp1, _Tp2>&)'
  229 |     get(const std::pair<_Tp1, _Tp2>& __in) noexcept
      |     ^~~
/opt/wandbox/gcc-head/include/c++/10.0.0/utility:229:5: note:   template argument deduction/substitution failed:
In file included from prog.cc:7:
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1625:21: note:   'std::integer_sequence<long unsigned int, 0, 1, 2, 3>' is not derived from 'const std::pair<_Tp1, _Tp2>'
 1625 |       std::get<_Idx>(std::forward<_Tuple>(__t))...);
      |       ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/utility:234:5: note: candidate: 'template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(const std::pair<_Tp1, _Tp2>&&)'
  234 |     get(const std::pair<_Tp1, _Tp2>&& __in) noexcept
      |     ^~~
/opt/wandbox/gcc-head/include/c++/10.0.0/utility:234:5: note:   template argument deduction/substitution failed:
In file included from prog.cc:7:
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1625:21: note:   'std::integer_sequence<long unsigned int, 0, 1, 2, 3>' is not derived from 'const std::pair<_Tp1, _Tp2>'
 1625 |       std::get<_Idx>(std::forward<_Tuple>(__t))...);
      |       ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/utility:243:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp& std::get(std::pair<_T1, _T2>&)'
  243 |     get(pair<_Tp, _Up>& __p) noexcept
      |     ^~~
/opt/wandbox/gcc-head/include/c++/10.0.0/utility:243:5: note:   template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/utility:248:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp& std::get(const std::pair<_T1, _T2>&)'
  248 |     get(const pair<_Tp, _Up>& __p) noexcept
      |     ^~~
/opt/wandbox/gcc-head/include/c++/10.0.0/utility:248:5: note:   template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/utility:253:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp&& std::get(std::pair<_T1, _T2>&&)'
  253 |     get(pair<_Tp, _Up>&& __p) noexcept
      |     ^~~
/opt/wandbox/gcc-head/include/c++/10.0.0/utility:253:5: note:   template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/utility:258:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp&& std::get(const std::pair<_T1, _T2>&&)'
  258 |     get(const pair<_Tp, _Up>&& __p) noexcept
      |     ^~~
/opt/wandbox/gcc-head/include/c++/10.0.0/utility:258:5: note:   template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/utility:263:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp& std::get(std::pair<_Up, _Tp>&)'
  263 |     get(pair<_Up, _Tp>& __p) noexcept
      |     ^~~
/opt/wandbox/gcc-head/include/c++/10.0.0/utility:263:5: note:   template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/utility:268:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp& std::get(const std::pair<_Up, _Tp>&)'
  268 |     get(const pair<_Up, _Tp>& __p) noexcept
      |     ^~~
/opt/wandbox/gcc-head/include/c++/10.0.0/utility:268:5: note:   template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/utility:273:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp&& std::get(std::pair<_Up, _Tp>&&)'
  273 |     get(pair<_Up, _Tp>&& __p) noexcept
      |     ^~~
/opt/wandbox/gcc-head/include/c++/10.0.0/utility:273:5: note:   template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/utility:278:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp&& std::get(const std::pair<_Up, _Tp>&&)'
  278 |     get(const pair<_Up, _Tp>&& __p) noexcept
      |     ^~~
/opt/wandbox/gcc-head/include/c++/10.0.0/utility:278:5: note:   template argument deduction/substitution failed:
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/tuple:39,
                 from prog.cc:7:
/opt/wandbox/gcc-head/include/c++/10.0.0/array:314:5: note: candidate: 'template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp& std::get(std::array<_Tp, _Nm>&)'
  314 |     get(array<_Tp, _Nm>& __arr) noexcept
      |     ^~~
/opt/wandbox/gcc-head/include/c++/10.0.0/array:314:5: note:   template argument deduction/substitution failed:
In file included from prog.cc:7:
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1625:21: note:   'std::integer_sequence<long unsigned int, 0, 1, 2, 3>' is not derived from 'std::array<_Tp, _Nm>'
 1625 |       std::get<_Idx>(std::forward<_Tuple>(__t))...);
      |       ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/tuple:39,
                 from prog.cc:7:
/opt/wandbox/gcc-head/include/c++/10.0.0/array:323:5: note: candidate: 'template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp&& std::get(std::array<_Tp, _Nm>&&)'
  323 |     get(array<_Tp, _Nm>&& __arr) noexcept
      |     ^~~
/opt/wandbox/gcc-head/include/c++/10.0.0/array:323:5: note:   template argument deduction/substitution failed:
In file included from prog.cc:7:
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1625:21: note:   'std::integer_sequence<long unsigned int, 0, 1, 2, 3>' is not derived from 'std::array<_Tp, _Nm>'
 1625 |       std::get<_Idx>(std::forward<_Tuple>(__t))...);
      |       ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/tuple:39,
                 from prog.cc:7:
/opt/wandbox/gcc-head/include/c++/10.0.0/array:331:5: note: candidate: 'template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr const _Tp& std::get(const std::array<_Tp, _Nm>&)'
  331 |     get(const array<_Tp, _Nm>& __arr) noexcept
      |     ^~~
/opt/wandbox/gcc-head/include/c++/10.0.0/array:331:5: note:   template argument deduction/substitution failed:
In file included from prog.cc:7:
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1625:21: note:   'std::integer_sequence<long unsigned int, 0, 1, 2, 3>' is not derived from 'const std::array<_Tp, _Nm>'
 1625 |       std::get<_Idx>(std::forward<_Tuple>(__t))...);
      |       ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/10.0.0/tuple:39,
                 from prog.cc:7:
/opt/wandbox/gcc-head/include/c++/10.0.0/array:340:5: note: candidate: 'template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr const _Tp&& std::get(const std::array<_Tp, _Nm>&&)'
  340 |     get(const array<_Tp, _Nm>&& __arr) noexcept
      |     ^~~
/opt/wandbox/gcc-head/include/c++/10.0.0/array:340:5: note:   template argument deduction/substitution failed:
In file included from prog.cc:7:
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1625:21: note:   'std::integer_sequence<long unsigned int, 0, 1, 2, 3>' is not derived from 'const std::array<_Tp, _Nm>'
 1625 |       std::get<_Idx>(std::forward<_Tuple>(__t))...);
      |       ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1228:5: note: candidate: 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_UTypes ...> >& std::get(std::tuple<_UTypes ...>&)'
 1228 |     get(tuple<_Elements...>& __t) noexcept
      |     ^~~
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1228:5: note:   template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1625:21: note:   'std::integer_sequence<long unsigned int, 0, 1, 2, 3>' is not derived from 'std::tuple<_UTypes ...>'
 1625 |       std::get<_Idx>(std::forward<_Tuple>(__t))...);
      |       ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1234:5: note: candidate: 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_UTypes ...> >& std::get(const std::tuple<_UTypes ...>&)'
 1234 |     get(const tuple<_Elements...>& __t) noexcept
      |     ^~~
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1234:5: note:   template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1625:21: note:   'std::integer_sequence<long unsigned int, 0, 1, 2, 3>' is not derived from 'const std::tuple<_UTypes ...>'
 1625 |       std::get<_Idx>(std::forward<_Tuple>(__t))...);
      |       ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1240:5: note: candidate: 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_UTypes ...> >&& std::get(std::tuple<_UTypes ...>&&)'
 1240 |     get(tuple<_Elements...>&& __t) noexcept
      |     ^~~
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1240:5: note:   template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1625:21: note:   'std::integer_sequence<long unsigned int, 0, 1, 2, 3>' is not derived from 'std::tuple<_UTypes ...>'
 1625 |       std::get<_Idx>(std::forward<_Tuple>(__t))...);
      |       ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1249:5: note: candidate: 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_UTypes ...> >&& std::get(const std::tuple<_UTypes ...>&&)'
 1249 |     get(const tuple<_Elements...>&& __t) noexcept
      |     ^~~
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1249:5: note:   template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1625:21: note:   'std::integer_sequence<long unsigned int, 0, 1, 2, 3>' is not derived from 'const std::tuple<_UTypes ...>'
 1625 |       std::get<_Idx>(std::forward<_Tuple>(__t))...);
      |       ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1272:5: note: candidate: 'template<class _Tp, class ... _Types> constexpr _Tp& std::get(std::tuple<_UTypes ...>&)'
 1272 |     get(tuple<_Types...>& __t) noexcept
      |     ^~~
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1272:5: note:   template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1278:5: note: candidate: 'template<class _Tp, class ... _Types> constexpr _Tp&& std::get(std::tuple<_UTypes ...>&&)'
 1278 |     get(tuple<_Types...>&& __t) noexcept
      |     ^~~
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1278:5: note:   template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1284:5: note: candidate: 'template<class _Tp, class ... _Types> constexpr const _Tp& std::get(const std::tuple<_UTypes ...>&)'
 1284 |     get(const tuple<_Types...>& __t) noexcept
      |     ^~~
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1284:5: note:   template argument deduction/substitution failed:
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1291:5: note: candidate: 'template<class _Tp, class ... _Types> constexpr const _Tp&& std::get(const std::tuple<_UTypes ...>&&)'
 1291 |     get(const tuple<_Types...>&& __t) noexcept
      |     ^~~
/opt/wandbox/gcc-head/include/c++/10.0.0/tuple:1291:5: note:   template argument deduction/substitution failed:
Exit Code:
1