Author
anonymous
over 7 years ago
Language
C++
Compiler
clang HEAD 6.0.0 (https://github.com/llvm-mirror/clang.git 55deb317c4912a2615cc78eebcd987e70ad2d749) (https://github.com/llvm-mirror/llvm.git 4b94f747ffa67ee35a8a04ec71ecc278b91a1db1)
Options
Warnings
Boost 1.65.0
C++2a(GNU)
no pedantic
Author
anonymous
over 7 years ago
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.65.0/clang-head/include -std=gnu++2a
prog.cc:33:7: error: no matching function for call to 'get'
std::get<m_variant.index()>(m_variant).Foo();
^~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:43:7: note: in instantiation of member function 'D<B, C>::Bar' requested here
d.Bar();
^
/opt/wandbox/clang-head/include/c++/v1/utility:741:1: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_Ip'
get(pair<_T1, _T2>& __p) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/utility:749:1: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_Ip'
get(const pair<_T1, _T2>& __p) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/utility:758:1: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_Ip'
get(pair<_T1, _T2>&& __p) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/utility:766:1: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_Ip'
get(const pair<_T1, _T2>&& __p) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/utility:775:17: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_T1'
constexpr _T1 & get(pair<_T1, _T2>& __p) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/utility:782:23: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_T1'
constexpr _T1 const & get(pair<_T1, _T2> const& __p) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/utility:789:18: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_T1'
constexpr _T1 && get(pair<_T1, _T2>&& __p) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/utility:796:24: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_T1'
constexpr _T1 const && get(pair<_T1, _T2> const&& __p) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/utility:803:17: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_T1'
constexpr _T1 & get(pair<_T2, _T1>& __p) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/utility:810:23: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_T1'
constexpr _T1 const & get(pair<_T2, _T1> const& __p) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/utility:817:18: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_T1'
constexpr _T1 && get(pair<_T2, _T1>&& __p) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/utility:824:24: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_T1'
constexpr _T1 const && get(pair<_T2, _T1> const&& __p) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/tuple:958:1: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_Ip'
get(tuple<_Tp...>& __t) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/tuple:967:1: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_Ip'
get(const tuple<_Tp...>& __t) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/tuple:976:1: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_Ip'
get(tuple<_Tp...>&& __t) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/tuple:986:1: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_Ip'
get(const tuple<_Tp...>&& __t) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/tuple:1035:16: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_T1'
constexpr _T1& get(tuple<_Args...>& __tup) noexcept
^
/opt/wandbox/clang-head/include/c++/v1/tuple:1042:22: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_T1'
constexpr _T1 const& get(tuple<_Args...> const& __tup) noexcept
^
/opt/wandbox/clang-head/include/c++/v1/tuple:1049:17: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_T1'
constexpr _T1&& get(tuple<_Args...>&& __tup) noexcept
^
/opt/wandbox/clang-head/include/c++/v1/tuple:1056:23: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_T1'
constexpr _T1 const&& get(tuple<_Args...> const&& __tup) noexcept
^
/opt/wandbox/clang-head/include/c++/v1/array:307:1: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_Ip'
get(array<_Tp, _Size>& __a) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/array:316:1: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_Ip'
get(const array<_Tp, _Size>& __a) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/array:327:1: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_Ip'
get(array<_Tp, _Size>&& __a) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/array:336:1: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_Ip'
get(const array<_Tp, _Size>&& __a) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/variant:1305:59: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_Ip'
constexpr variant_alternative_t<_Ip, variant<_Types...>>& get(
^
/opt/wandbox/clang-head/include/c++/v1/variant:1314:60: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_Ip'
constexpr variant_alternative_t<_Ip, variant<_Types...>>&& get(
^
/opt/wandbox/clang-head/include/c++/v1/variant:1323:65: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_Ip'
constexpr const variant_alternative_t<_Ip, variant<_Types...>>& get(
^
/opt/wandbox/clang-head/include/c++/v1/variant:1332:66: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_Ip'
constexpr const variant_alternative_t<_Ip, variant<_Types...>>&& get(
^
/opt/wandbox/clang-head/include/c++/v1/variant:1341:16: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_Tp'
constexpr _Tp& get(variant<_Types...>& __v) {
^
/opt/wandbox/clang-head/include/c++/v1/variant:1348:17: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_Tp'
constexpr _Tp&& get(variant<_Types...>&& __v) {
^
/opt/wandbox/clang-head/include/c++/v1/variant:1356:22: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_Tp'
constexpr const _Tp& get(const variant<_Types...>& __v) {
^
/opt/wandbox/clang-head/include/c++/v1/variant:1363:23: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_Tp'
constexpr const _Tp&& get(const variant<_Types...>&& __v) {
^
1 error generated.
Exit Code:
1