包含“ ext / hash_map”时编译错误

时间:2018-11-26 02:33:46

标签: android android-ndk llvm-c++-api

  

包含在以下文件中   C:/ Users / yanzhen / AppData / Local / Android / Sdk / ndk-bundle / sources / cxx-stl / llvm-libc ++ / include \ ext / hash_map:203:

     

C:/ Users / yanzhen / AppData / Local / Android / Sdk / ndk-bundle / sources / cxx-stl / llvm-libc ++ / include__hash_table:1741:47:

     

错误:类型为'std :: __ ndk1 :: pair的对象,   std :: __ ndk1 :: allocator>,未签名的int>'无法分配   因为它的副本分配运算符被隐式删除

     

__ cache-> __ upcast()-> __ value_ = * __ first;

                                ^
     

C:/ Users / yanzhen / AppData / Local / Android / Sdk / ndk-bundle / sources / cxx-stl / llvm-libc ++ / include__hash_table:1534:9:

     

注意:在功能模板专门化的实例中   'std :: __ ndk1 :: __ hash_table,   std :: __ ndk1 :: allocator>,unsigned int>,   __gnu_cxx :: __ hash_map_hasher,   std :: __ ndk1 :: allocator>,unsigned int>,__gnu_cxx :: hash,true>,   __gnu_cxx :: __ hash_map_equal,   std :: __ ndk1 :: allocator>,unsigned int>,   std :: __ ndk1 :: equal_to,std :: __ ndk1 :: allocator>>,   true>,std :: __ ndk1 :: allocator,   std :: __ ndk1 :: allocator>,无符号int>>

     
    

:: __ assign_multi,     std :: __ ndk1 :: allocator>,unsigned int>,void *> *>>'已请求     这里             __assign_multi(__ u.begin(),__u.end());             ^

  
     

C:/ Users / yanzhen / AppData / Local / Android / Sdk / ndk-bundle / sources / cxx-stl / llvm-libc ++ / include \ ext / hash_map:465:28:

     

注意:实例化成员函数   'std :: __ ndk1 :: __ hash_table,   std :: __ ndk1 :: allocator>,unsigned int>,   __gnu_cxx :: __ hash_map_hasher,   std :: __ ndk1 :: allocator>,unsigned int>,__gnu_cxx :: hash,true>,   __gnu_cxx :: __ hash_map_equal,   std :: __ ndk1 :: allocator>,unsigned int>,   std :: __ ndk1 :: equal_to,std :: __ ndk1 :: allocator>>,   true>,std :: __ ndk1 :: allocator,   std :: __ ndk1 :: allocator>,unsigned int>>> :: operator ='   这里要求的课程_LIBCPP_TEMPLATE_VIS hash_map                              ^

     

C:/ Users / yanzhen / AppData / Local / Android / Sdk / ndk-bundle / sources / cxx-stl / llvm-libc ++ / include \ utility:325:5:   注意:复制分配运算符被隐式删除,因为   'pair,std :: __ ndk1 :: allocator>,   unsigned int>'具有用户声明的move构造函数       pair(pair &&)=默认值;

0 个答案:

没有答案
相关问题