내가 다음과 같이 정의 할당과 표준 : : 벡터 클래스를 사용하는 사용자 지정 벡터 클래스를 정의하고 싶습니다해야합니다 이 같은 :템플릿 형식 정의 사용자 정의 할당
my_vector<std::string> v;
++ 2.95.3 Solaris 10의 컴파일러가
template declaration of `typedef class vector<T,MyLib::MyAlloc<T1> > my_vector'
aggregate `class my_vector<basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > > v' has incomplete type and cannot be initialized
이 t를 해결하는 데 도움이 바랍니다한다는 불만을 내 g 그는 발설했다.
오류 메시지에는 .... .... MyLib :: MyAlloc하지만 코드에는 'T1'이 없습니다. 이것이 실제로 코드와 오류 메시지 인 경우 매우 이상합니다. –
user463035818
@ tobi303도 혼동 스럽네요. –