Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 7 years ago

Language

Compiler

Options

Author

anonymous

almost 7 years ago

$
prog.cc:7:8: error: no template named 'is_array'; did you mean 'std::is_array'?
struct is_array<T[]> : std::true_type {};
       ^~~~~~~~
       std::is_array
/opt/wandbox/clang-head/include/c++/v1/type_traits:757:50: note: 'std::is_array' declared here
template <class _Tp> struct _LIBCPP_TEMPLATE_VIS is_array
                                                 ^
prog.cc:7:8: error: redefinition of 'is_array<T []>'
struct is_array<T[]> : std::true_type {};
       ^~~~~~~~~~~~~
/opt/wandbox/clang-head/include/c++/v1/type_traits:759:50: note: previous definition is here
template <class _Tp> struct _LIBCPP_TEMPLATE_VIS is_array<_Tp[]>
                                                 ^
prog.cc:14:5: error: no template named 'is_array'; did you mean 'std::is_array'?
    is_array<A[3]> *a; // error
    ^~~~~~~~
    std::is_array
/opt/wandbox/clang-head/include/c++/v1/type_traits:757:50: note: 'std::is_array' declared here
template <class _Tp> struct _LIBCPP_TEMPLATE_VIS is_array
                                                 ^
prog.cc:15:5: error: no template named 'is_array'; did you mean 'std::is_array'?
    is_array<A[3]> b; // error
    ^~~~~~~~
    std::is_array
/opt/wandbox/clang-head/include/c++/v1/type_traits:757:50: note: 'std::is_array' declared here
template <class _Tp> struct _LIBCPP_TEMPLATE_VIS is_array
                                                 ^
4 errors generated.
Exit Code:
1