Author
anonymous
over 8 years ago
Language
Compiler
Options
Author
anonymous
over 8 years ago
$ In file included from prog.cc:1:
In file included from /opt/wandbox/clang-head/include/c++/v1/vector:266:
In file included from /opt/wandbox/clang-head/include/c++/v1/__bit_reference:15:
In file included from /opt/wandbox/clang-head/include/c++/v1/algorithm:643:
/opt/wandbox/clang-head/include/c++/v1/memory:1814:61: error: object expression of non-scalar type 'RoadState [4]' cannot be used in a pseudo-destructor expression
_LIBCPP_INLINE_VISIBILITY void destroy(pointer __p) {__p->~_Tp();}
~~~^
/opt/wandbox/clang-head/include/c++/v1/memory:1682:18: note: in instantiation of member function 'std::__1::allocator<RoadState [4]>::destroy' requested here
{__a.destroy(__p);}
^
/opt/wandbox/clang-head/include/c++/v1/memory:1550:14: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::__1::allocator<RoadState [4]> >::__destroy<RoadState [4]>' requested here
{__destroy(__has_destroy<allocator_type, _Tp*>(), __a, __p);}
^
/opt/wandbox/clang-head/include/c++/v1/vector:420:25: note: in instantiation of function template specialization 'std::__1::allocator_traits<std::__1::allocator<RoadState [4]> >::destroy<RoadState [4]>' requested here
__alloc_traits::destroy(__alloc(), _VSTD::__to_raw_pointer(--__soon_to_be_end));
^
/opt/wandbox/clang-head/include/c++/v1/vector:363:29: note: in instantiation of member function 'std::__1::__vector_base<RoadState [4], std::__1::allocator<RoadState [4]> >::__destruct_at_end' requested here
void clear() _NOEXCEPT {__destruct_at_end(__begin_);}
^
/opt/wandbox/clang-head/include/c++/v1/vector:448:9: note: in instantiation of member function 'std::__1::__vector_base<RoadState [4], std::__1::allocator<RoadState [4]> >::clear' requested here
clear();
^
/opt/wandbox/clang-head/include/c++/v1/vector:454:28: note: in instantiation of member function 'std::__1::__vector_base<RoadState [4], std::__1::allocator<RoadState [4]> >::~__vector_base' requested here
class _LIBCPP_TEMPLATE_VIS vector
^
1 error generated.
Exit Code:
1