Created
March 13, 2014 14:38
-
-
Save WattsInABox/9529704 to your computer and use it in GitHub Desktop.
Compile Errors for Sparsehash 1.8.1 on LLVM 5.1 on Mac OS X 10.9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gcc -v | |
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 | |
Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn) | |
Target: x86_64-apple-darwin13.1.0 | |
Thread model: posix | |
$ ./configure | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for gawk... no | |
checking for mawk... no | |
checking for nawk... no | |
checking for awk... awk | |
checking whether make sets $(MAKE)... yes | |
checking for gcc... gcc | |
checking for C compiler default output file name... a.out | |
checking whether the C compiler works... yes | |
checking whether we are cross compiling... no | |
checking for suffix of executables... | |
checking for suffix of object files... o | |
checking whether we are using the GNU C compiler... yes | |
checking whether gcc accepts -g... yes | |
checking for gcc option to accept ISO C89... none needed | |
checking for style of include used by make... GNU | |
checking dependency style of gcc... gcc3 | |
checking how to run the C preprocessor... gcc -E | |
checking for g++... g++ | |
checking whether we are using the GNU C++ compiler... yes | |
checking whether g++ accepts -g... yes | |
checking dependency style of g++... gcc3 | |
checking for grep that handles long lines and -e... /usr/bin/grep | |
checking for egrep... /usr/bin/grep -E | |
checking for ANSI C header files... yes | |
checking for memcpy... yes | |
checking for memmove... yes | |
checking for sys/types.h... yes | |
checking for sys/stat.h... yes | |
checking for stdlib.h... yes | |
checking for string.h... yes | |
checking for memory.h... yes | |
checking for strings.h... yes | |
checking for inttypes.h... yes | |
checking for stdint.h... yes | |
checking for unistd.h... yes | |
checking for uint16_t... yes | |
checking for u_int16_t... yes | |
checking for __uint16... no | |
checking for long long... yes | |
checking sys/resource.h usability... yes | |
checking sys/resource.h presence... yes | |
checking for sys/resource.h... yes | |
checking for unistd.h... (cached) yes | |
checking sys/time.h usability... yes | |
checking sys/time.h presence... yes | |
checking for sys/time.h... yes | |
checking sys/utsname.h usability... yes | |
checking sys/utsname.h presence... yes | |
checking for sys/utsname.h... yes | |
checking how to run the C++ preprocessor... g++ -E | |
checking google/malloc_extension.h usability... no | |
checking google/malloc_extension.h presence... no | |
checking for google/malloc_extension.h... no | |
checking whether the compiler implements namespaces... yes | |
checking the location of hash_map... <unordered_map> | |
checking how to include hash_fun directly... <functional> | |
checking what namespace STL code is in... std | |
configure: creating ./config.status | |
config.status: creating Makefile | |
config.status: creating src/config.h | |
config.status: executing depfiles commands | |
[10:32:13] (41) williamrwatson@WattsInABoxPro:~/development/sparsehash-1.8.1 | |
$ make | |
[ -d src/google/sparsehash ] || mkdir -p src/google/sparsehash | |
echo "/*" > src/google/sparsehash/_sparsehash_config | |
echo " * NOTE: This file is for internal use only." >> src/google/sparsehash/_sparsehash_config | |
echo " * Do not use these #defines in your own program!" >> src/google/sparsehash/_sparsehash_config | |
echo " */" >> src/google/sparsehash/_sparsehash_config | |
awk '{prevline=currline; currline=$0;} \ | |
/^#/ {in_second_file = 1;} \ | |
!in_second_file {if (currline !~ /^ *$/) {inc[currline]=0}}; \ | |
in_second_file { for (i in inc) { \ | |
if (index(currline, i) != 0) { \ | |
print "\n"prevline"\n"currline; \ | |
delete inc[i]; \ | |
} \ | |
} }' \ | |
./src/config.h.include ./src/config.h \ | |
>> src/google/sparsehash/_sparsehash_config | |
mv -f src/google/sparsehash/_sparsehash_config src/google/sparsehash/sparseconfig.h | |
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-am | |
if g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT type_traits_unittest.o -MD -MP -MF ".deps/type_traits_unittest.Tpo" -c -o type_traits_unittest.o `test -f 'src/type_traits_unittest.cc' || echo './'`src/type_traits_unittest.cc; \ | |
then mv -f ".deps/type_traits_unittest.Tpo" ".deps/type_traits_unittest.Po"; else rm -f ".deps/type_traits_unittest.Tpo"; exit 1; fi | |
src/type_traits_unittest.cc:64:7: warning: private field 'n_' is not used [-Wunused-private-field] | |
int n_; | |
^ | |
src/type_traits_unittest.cc:74:7: warning: private field 'n_' is not used [-Wunused-private-field] | |
int n_; | |
^ | |
src/type_traits_unittest.cc:88:7: warning: private field 'n_' is not used [-Wunused-private-field] | |
int n_; | |
^ | |
src/type_traits_unittest.cc:114:7: warning: private field 'n_' is not used [-Wunused-private-field] | |
int n_; | |
^ | |
4 warnings generated. | |
g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o type_traits_unittest type_traits_unittest.o | |
if g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT libc_allocator_with_realloc_test.o -MD -MP -MF ".deps/libc_allocator_with_realloc_test.Tpo" -c -o libc_allocator_with_realloc_test.o `test -f 'src/libc_allocator_with_realloc_test.cc' || echo './'`src/libc_allocator_with_realloc_test.cc; \ | |
then mv -f ".deps/libc_allocator_with_realloc_test.Tpo" ".deps/libc_allocator_with_realloc_test.Po"; else rm -f ".deps/libc_allocator_with_realloc_test.Tpo"; exit 1; fi | |
g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o libc_allocator_with_realloc_test libc_allocator_with_realloc_test.o | |
if g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT sparsetable_unittest.o -MD -MP -MF ".deps/sparsetable_unittest.Tpo" -c -o sparsetable_unittest.o `test -f 'src/sparsetable_unittest.cc' || echo './'`src/sparsetable_unittest.cc; \ | |
then mv -f ".deps/sparsetable_unittest.Tpo" ".deps/sparsetable_unittest.Po"; else rm -f ".deps/sparsetable_unittest.Tpo"; exit 1; fi | |
In file included from src/sparsetable_unittest.cc:50: | |
./src/google/sparsetable:1087:36: warning: unused parameter 'ptr' [-Wunused-parameter] | |
pointer realloc_or_die(pointer ptr, size_type n) { | |
^ | |
./src/google/sparsetable:1087:51: warning: unused parameter 'n' [-Wunused-parameter] | |
pointer realloc_or_die(pointer ptr, size_type n) { | |
^ | |
2 warnings generated. | |
g++ -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -o sparsetable_unittest sparsetable_unittest.o | |
if g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow -g -O2 -MT hashtable_test.o -MD -MP -MF ".deps/hashtable_test.Tpo" -c -o hashtable_test.o `test -f 'src/hashtable_test.cc' || echo './'`src/hashtable_test.cc; \ | |
then mv -f ".deps/hashtable_test.Tpo" ".deps/hashtable_test.Po"; else rm -f ".deps/hashtable_test.Tpo"; exit 1; fi | |
In file included from src/hashtable_test.cc:63: | |
./src/google/sparsetable:1087:36: warning: unused parameter 'ptr' [-Wunused-parameter] | |
pointer realloc_or_die(pointer ptr, size_type n) { | |
^ | |
./src/google/sparsetable:1087:51: warning: unused parameter 'n' [-Wunused-parameter] | |
pointer realloc_or_die(pointer ptr, size_type n) { | |
^ | |
In file included from src/hashtable_test.cc:64: | |
In file included from ./src/hash_test_interface.h:55: | |
./src/google/sparsehash/densehashtable.h:1061:29: warning: unused parameter 'fp' [-Wunused-parameter] | |
bool write_metadata(FILE *fp) { | |
^ | |
./src/google/sparsehash/densehashtable.h:1066:28: warning: unused parameter 'fp' [-Wunused-parameter] | |
bool read_metadata(FILE *fp) { | |
^ | |
./src/google/sparsehash/densehashtable.h:1118:36: warning: unused parameter 'ptr' [-Wunused-parameter] | |
pointer realloc_or_die(pointer ptr, size_type n) { | |
^ | |
./src/google/sparsehash/densehashtable.h:1118:51: warning: unused parameter 'n' [-Wunused-parameter] | |
pointer realloc_or_die(pointer ptr, size_type n) { | |
^ | |
In file included from src/hashtable_test.cc:64: | |
./src/hash_test_interface.h:425:50: warning: unused parameter 'k' [-Wunused-parameter] | |
void set_empty_key(const typename p::key_type& k) { } | |
^ | |
./src/hash_test_interface.h:528:50: warning: unused parameter 'k' [-Wunused-parameter] | |
void set_empty_key(const typename p::key_type& k) { } | |
^ | |
./src/hash_test_interface.h:640:50: warning: unused parameter 'k' [-Wunused-parameter] | |
void set_empty_key(const typename p::key_type& k) { } | |
^ | |
./src/hash_test_interface.h:737:58: warning: unused parameter 'fp' [-Wunused-parameter] | |
template <typename OUTPUT> bool write_metadata(OUTPUT *fp) { return false; } | |
^ | |
./src/hash_test_interface.h:738:55: warning: unused parameter 'fp' [-Wunused-parameter] | |
template <typename INPUT> bool read_metadata(INPUT *fp) { return false; } | |
^ | |
./src/hash_test_interface.h:839:58: warning: unused parameter 'fp' [-Wunused-parameter] | |
template <typename OUTPUT> bool write_metadata(OUTPUT *fp) { return false; } | |
^ | |
./src/hash_test_interface.h:840:55: warning: unused parameter 'fp' [-Wunused-parameter] | |
template <typename INPUT> bool read_metadata(INPUT *fp) { return false; } | |
^ | |
./src/hash_test_interface.h:964:58: warning: unused parameter 'fp' [-Wunused-parameter] | |
template <typename OUTPUT> bool write_metadata(OUTPUT *fp) { return false; } | |
^ | |
./src/hash_test_interface.h:965:55: warning: unused parameter 'fp' [-Wunused-parameter] | |
template <typename INPUT> bool read_metadata(INPUT *fp) { return false; } | |
^ | |
In file included from src/hashtable_test.cc:61: | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:502:5: error: implicit instantiation of undefined template '__static_assert_test<false>' | |
static_assert((is_same<typename allocator_type::value_type, value_type>::value), | |
^ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__config:490:35: note: expanded from macro 'static_assert' | |
typedef __static_assert_check<sizeof(__static_assert_test<(__b)>)> \ | |
^ | |
./src/google/sparsetable:1230:20: note: in instantiation of template class 'std::__1::vector<google::sparsegroup<std::__1::pair<const int, int>, 48, <anonymous>::Alloc<int, unsigned long, | |
18446744073709551615> >, <anonymous>::Alloc<google::sparsegroup<std::__1::pair<const int, int>, 48, <anonymous>::Alloc<std::__1::pair<const int, int>, unsigned long, 18446744073709551615> >, | |
unsigned long, 18446744073709551615> >' requested here | |
typedef typename group_vector_type::reference GroupsReference; | |
^ | |
./src/google/sparsehash/sparsehashtable.h:164:20: note: in instantiation of template class 'google::sparsetable<std::__1::pair<const int, int>, 48, <anonymous>::Alloc<int, unsigned long, | |
18446744073709551615> >' requested here | |
typedef typename sparsetable<V,DEFAULT_GROUP_SIZE,A>::nonempty_iterator | |
^ | |
./src/hash_test_interface.h:84:27: note: in instantiation of template class 'google::sparse_hashtable_iterator<std::__1::pair<const int, int>, int, <anonymous>::Hasher, google::sparse_hash_map<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::SelectKey, google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, | |
<anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::SetKey, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> >' requested here | |
class iterator : public HT::iterator { | |
^ | |
src/hashtable_test.cc:480:32: note: in instantiation of member class 'google::BaseHashtableInterface<google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, | |
unsigned long, 18446744073709551615> > >::iterator' requested here | |
typename TypeParam::iterator i; | |
^ | |
src/hashtable_test.cc:459:1: note: in instantiation of member function '<anonymous namespace>::TEST_onetype_HashtableIntTest_Typedefs<google::HashtableInterface_SparseHashMap<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::Run' requested here | |
TYPED_TEST(HashtableIntTest, Typedefs) { | |
^ | |
./src/testutil.h:160:7: note: expanded from macro 'TYPED_TEST' | |
Run(); \ | |
^ | |
src/hashtable_test.cc:459:1: note: in instantiation of member function '<anonymous namespace>::TEST_onetype_HashtableIntTest_Typedefs<google::HashtableInterface_SparseHashMap<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::TEST_onetype_HashtableIntTest_Typedefs' requested here | |
TYPED_TEST(HashtableIntTest, Typedefs) { | |
^ | |
./src/testutil.h:170:68: note: expanded from macro 'TYPED_TEST' | |
TEST_onetype_##superclass##_##testname<superclass##_type1> t; \ | |
^ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__config:486:24: note: template is declared here | |
template <bool> struct __static_assert_test; | |
^ | |
src/hashtable_test.cc:502:8: error: no viable conversion from 'google::BaseHashtableInterface<google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned | |
long, 18446744073709551615> > >::iterator' to 'const google::BaseHashtableInterface<google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, | |
18446744073709551615> > >::const_iterator' | |
ci = this->ht_.begin(); | |
^~~~~~~~~~~~~~~~~ | |
src/hashtable_test.cc:459:1: note: in instantiation of member function '<anonymous namespace>::TEST_onetype_HashtableIntTest_Typedefs<google::HashtableInterface_SparseHashMap<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::Run' requested here | |
TYPED_TEST(HashtableIntTest, Typedefs) { | |
^ | |
./src/testutil.h:160:7: note: expanded from macro 'TYPED_TEST' | |
Run(); \ | |
^ | |
src/hashtable_test.cc:459:1: note: in instantiation of member function '<anonymous namespace>::TEST_onetype_HashtableIntTest_Typedefs<google::HashtableInterface_SparseHashMap<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::TEST_onetype_HashtableIntTest_Typedefs' requested here | |
TYPED_TEST(HashtableIntTest, Typedefs) { | |
^ | |
./src/testutil.h:170:68: note: expanded from macro 'TYPED_TEST' | |
TEST_onetype_##superclass##_##testname<superclass##_type1> t; \ | |
^ | |
./src/hash_test_interface.h:107:5: note: candidate constructor | |
const_iterator(typename BaseHashtableInterface<HT>::iterator it) | |
^ | |
./src/hash_test_interface.h:96:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'google::BaseHashtableInterface<google::sparse_hash_map<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::iterator' to 'const google::BaseHashtableInterface<google::sparse_hash_map<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::const_iterator &' for 1st argument | |
class const_iterator : public HT::const_iterator { | |
^ | |
./src/hash_test_interface.h:96:9: note: passing argument to parameter here | |
src/hashtable_test.cc:504:9: error: no viable conversion from 'google::BaseHashtableInterface<google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned | |
long, 18446744073709551615> > >::local_iterator' to 'const google::BaseHashtableInterface<google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned | |
long, 18446744073709551615> > >::const_local_iterator' | |
cli = this->ht_.begin(0); | |
^~~~~~~~~~~~~~~~~~ | |
./src/hash_test_interface.h:137:5: note: candidate constructor | |
const_local_iterator(local_iterator it) | |
^ | |
./src/hash_test_interface.h:128:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'google::BaseHashtableInterface<google::sparse_hash_map<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::local_iterator' to 'const google::BaseHashtableInterface<google::sparse_hash_map<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::const_local_iterator &' for 1st argument | |
class const_local_iterator : public HT::const_local_iterator { | |
^ | |
./src/hash_test_interface.h:128:9: note: passing argument to parameter here | |
In file included from src/hashtable_test.cc:64: | |
In file included from ./src/hash_test_interface.h:52: | |
./src/google/sparsehash/sparsehashtable.h:372:41: error: no matching constructor for initialization of 'iterator' (aka 'sparse_hashtable_iterator<std::__1::pair<const int, int>, int, <anonymous>::Hasher, | |
google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::SelectKey, google::sparse_hash_map<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::SetKey, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> | |
>') | |
iterator begin() { return iterator(this, table.nonempty_begin(), | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
./src/google/sparse_hash_map:152:63: note: in instantiation of member function 'google::sparse_hashtable<std::__1::pair<const int, int>, int, <anonymous>::Hasher, google::sparse_hash_map<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::SelectKey, google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, | |
<anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::SetKey, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::begin' requested here | |
iterator begin() { return rep.begin(); } | |
^ | |
./src/hash_test_interface.h:145:25: note: in instantiation of member function 'google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, | |
18446744073709551615> >::begin' requested here | |
return iterator(ht_.begin(), this); | |
^ | |
src/hashtable_test.cc:502:18: note: in instantiation of member function 'google::BaseHashtableInterface<google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, | |
unsigned long, 18446744073709551615> > >::begin' requested here | |
ci = this->ht_.begin(); | |
^ | |
src/hashtable_test.cc:459:1: note: in instantiation of member function '<anonymous namespace>::TEST_onetype_HashtableIntTest_Typedefs<google::HashtableInterface_SparseHashMap<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::Run' requested here | |
TYPED_TEST(HashtableIntTest, Typedefs) { | |
^ | |
./src/testutil.h:160:7: note: expanded from macro 'TYPED_TEST' | |
Run(); \ | |
^ | |
src/hashtable_test.cc:459:1: note: in instantiation of member function '<anonymous namespace>::TEST_onetype_HashtableIntTest_Typedefs<google::HashtableInterface_SparseHashMap<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::TEST_onetype_HashtableIntTest_Typedefs' requested here | |
TYPED_TEST(HashtableIntTest, Typedefs) { | |
^ | |
./src/testutil.h:170:68: note: expanded from macro 'TYPED_TEST' | |
TEST_onetype_##superclass##_##testname<superclass##_type1> t; \ | |
^ | |
./src/google/sparsehash/sparsehashtable.h:175:3: note: candidate constructor not viable: no known conversion from 'nonempty_iterator' (aka 'two_d_iterator<vector<sparsegroup<value_type, 48, | |
value_alloc_type>, vector_alloc> >') to 'st_iterator' (aka 'int') for 2nd argument | |
sparse_hashtable_iterator(const sparse_hashtable<V,K,HF,ExK,SetK,EqK,A> *h, | |
^ | |
./src/google/sparsehash/sparsehashtable.h:178:3: note: candidate constructor not viable: requires 0 arguments, but 3 were provided | |
sparse_hashtable_iterator() { } // not ever used internally | |
^ | |
./src/google/sparsehash/sparsehashtable.h:157:8: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided | |
struct sparse_hashtable_iterator { | |
^ | |
In file included from src/hashtable_test.cc:64: | |
./src/hash_test_interface.h:89:15: error: type 'typename sparse_hash_map<int, int, Hasher, Hasher, Alloc<int, unsigned long, 18446744073709551615> >::iterator' (aka | |
'sparse_hashtable_iterator<std::__1::pair<const int, int>, int, <anonymous>::Hasher, google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned | |
long, 18446744073709551615> >::SelectKey, google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::SetKey, | |
<anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> >') is not a direct or virtual base of 'google::BaseHashtableInterface<google::sparse_hash_map<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::iterator' | |
: HT::iterator(it), parent_(parent) { } | |
^~~~~~~~ | |
./src/hash_test_interface.h:145:12: note: in instantiation of member function 'google::BaseHashtableInterface<google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, | |
<anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::iterator::iterator' requested here | |
return iterator(ht_.begin(), this); | |
^ | |
src/hashtable_test.cc:502:18: note: in instantiation of member function 'google::BaseHashtableInterface<google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, | |
unsigned long, 18446744073709551615> > >::begin' requested here | |
ci = this->ht_.begin(); | |
^ | |
src/hashtable_test.cc:459:1: note: in instantiation of member function '<anonymous namespace>::TEST_onetype_HashtableIntTest_Typedefs<google::HashtableInterface_SparseHashMap<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::Run' requested here | |
TYPED_TEST(HashtableIntTest, Typedefs) { | |
^ | |
./src/testutil.h:160:7: note: expanded from macro 'TYPED_TEST' | |
Run(); \ | |
^ | |
src/hashtable_test.cc:459:1: note: in instantiation of member function '<anonymous namespace>::TEST_onetype_HashtableIntTest_Typedefs<google::HashtableInterface_SparseHashMap<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::TEST_onetype_HashtableIntTest_Typedefs' requested here | |
TYPED_TEST(HashtableIntTest, Typedefs) { | |
^ | |
./src/testutil.h:170:68: note: expanded from macro 'TYPED_TEST' | |
TEST_onetype_##superclass##_##testname<superclass##_type1> t; \ | |
^ | |
In file included from src/hashtable_test.cc:64: | |
In file included from ./src/hash_test_interface.h:52: | |
./src/google/sparsehash/sparsehashtable.h:390:14: error: no matching constructor for initialization of 'local_iterator' (aka 'sparse_hashtable_iterator<std::__1::pair<const int, int>, int, | |
<anonymous>::Hasher, google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::SelectKey, | |
google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::SetKey, <anonymous>::Hasher, <anonymous>::Alloc<int, | |
unsigned long, 18446744073709551615> >') | |
return local_iterator(this, table.get_iter(i), table.nonempty_end()); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
./src/google/sparse_hash_map:158:63: note: in instantiation of member function 'google::sparse_hashtable<std::__1::pair<const int, int>, int, <anonymous>::Hasher, google::sparse_hash_map<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::SelectKey, google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, | |
<anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::SetKey, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::begin' requested here | |
local_iterator begin(size_type i) { return rep.begin(i); } | |
^ | |
./src/hash_test_interface.h:157:31: note: in instantiation of member function 'google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, | |
18446744073709551615> >::begin' requested here | |
return local_iterator(ht_.begin(i), this); | |
^ | |
src/hashtable_test.cc:504:19: note: in instantiation of member function 'google::BaseHashtableInterface<google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, | |
unsigned long, 18446744073709551615> > >::begin' requested here | |
cli = this->ht_.begin(0); | |
^ | |
src/hashtable_test.cc:459:1: note: in instantiation of member function '<anonymous namespace>::TEST_onetype_HashtableIntTest_Typedefs<google::HashtableInterface_SparseHashMap<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::Run' requested here | |
TYPED_TEST(HashtableIntTest, Typedefs) { | |
^ | |
./src/testutil.h:160:7: note: expanded from macro 'TYPED_TEST' | |
Run(); \ | |
^ | |
src/hashtable_test.cc:459:1: note: in instantiation of member function '<anonymous namespace>::TEST_onetype_HashtableIntTest_Typedefs<google::HashtableInterface_SparseHashMap<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::TEST_onetype_HashtableIntTest_Typedefs' requested here | |
TYPED_TEST(HashtableIntTest, Typedefs) { | |
^ | |
./src/testutil.h:170:68: note: expanded from macro 'TYPED_TEST' | |
TEST_onetype_##superclass##_##testname<superclass##_type1> t; \ | |
^ | |
./src/google/sparsehash/sparsehashtable.h:175:3: note: candidate constructor not viable: no known conversion from 'nonempty_iterator' (aka 'two_d_iterator<vector<sparsegroup<value_type, 48, | |
value_alloc_type>, vector_alloc> >') to 'st_iterator' (aka 'int') for 2nd argument | |
sparse_hashtable_iterator(const sparse_hashtable<V,K,HF,ExK,SetK,EqK,A> *h, | |
^ | |
./src/google/sparsehash/sparsehashtable.h:178:3: note: candidate constructor not viable: requires 0 arguments, but 3 were provided | |
sparse_hashtable_iterator() { } // not ever used internally | |
^ | |
./src/google/sparsehash/sparsehashtable.h:157:8: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided | |
struct sparse_hashtable_iterator { | |
^ | |
src/hashtable_test.cc:508:33: error: invalid operands to binary expression ('google::BaseHashtableInterface<google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, | |
<anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::iterator' and 'google::BaseHashtableInterface<google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, | |
<anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::iterator') | |
EXPECT_TRUE(this->ht_.begin() == this->ht_.end()); | |
~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ | |
./src/testutil.h:49:9: note: expanded from macro 'EXPECT_TRUE' | |
if (!(cond)) { \ | |
^ | |
src/hashtable_test.cc:507:1: note: in instantiation of member function '<anonymous namespace>::TEST_onetype_HashtableAllTest_NormalIterators<google::HashtableInterface_SparseHashMap<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::Run' requested here | |
TYPED_TEST(HashtableAllTest, NormalIterators) { | |
^ | |
./src/testutil.h:160:7: note: expanded from macro 'TYPED_TEST' | |
Run(); \ | |
^ | |
src/hashtable_test.cc:507:1: note: in instantiation of member function '<anonymous namespace>::TEST_onetype_HashtableAllTest_NormalIterators<google::HashtableInterface_SparseHashMap<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::TEST_onetype_HashtableAllTest_NormalIterators' requested here | |
TYPED_TEST(HashtableAllTest, NormalIterators) { | |
^ | |
./src/testutil.h:170:68: note: expanded from macro 'TYPED_TEST' | |
TEST_onetype_##superclass##_##testname<superclass##_type1> t; \ | |
^ | |
./src/google/sparsehash/libc_allocator_with_realloc.h:108:13: note: candidate template ignored: could not match 'libc_allocator_with_realloc<type-parameter-0-0>' against | |
'google::BaseHashtableInterface<google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::iterator' | |
inline bool operator==(const libc_allocator_with_realloc<T>&, | |
^ | |
src/hashtable_test.cc:512:20: error: invalid operands to binary expression | |
('typename HashtableInterface_SparseHashMap<int, int, Hasher, Hasher, Alloc<int, unsigned long, 18446744073709551615> >::iterator' and 'google::BaseHashtableInterface<google::sparse_hash_map<int, | |
int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::iterator') | |
EXPECT_TRUE(it != this->ht_.end()); | |
~~ ^ ~~~~~~~~~~~~~~~ | |
./src/testutil.h:49:9: note: expanded from macro 'EXPECT_TRUE' | |
if (!(cond)) { \ | |
^ | |
./src/google/sparsehash/libc_allocator_with_realloc.h:114:13: note: candidate template ignored: could not match 'libc_allocator_with_realloc<type-parameter-0-0>' against | |
'google::BaseHashtableInterface<google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::iterator' | |
inline bool operator!=(const libc_allocator_with_realloc<T>&, | |
^ | |
src/hashtable_test.cc:513:5: error: cannot increment value of type 'typename HashtableInterface_SparseHashMap<int, int, Hasher, Hasher, Alloc<int, unsigned long, 18446744073709551615> >::iterator' | |
++it; | |
^ ~~ | |
src/hashtable_test.cc:514:20: error: invalid operands to binary expression | |
('typename HashtableInterface_SparseHashMap<int, int, Hasher, Hasher, Alloc<int, unsigned long, 18446744073709551615> >::iterator' and 'google::BaseHashtableInterface<google::sparse_hash_map<int, | |
int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::iterator') | |
EXPECT_TRUE(it == this->ht_.end()); | |
~~ ^ ~~~~~~~~~~~~~~~ | |
./src/testutil.h:49:9: note: expanded from macro 'EXPECT_TRUE' | |
if (!(cond)) { \ | |
^ | |
./src/google/sparsehash/libc_allocator_with_realloc.h:108:13: note: candidate template ignored: could not match 'libc_allocator_with_realloc<type-parameter-0-0>' against | |
'google::BaseHashtableInterface<google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::iterator' | |
inline bool operator==(const libc_allocator_with_realloc<T>&, | |
^ | |
In file included from src/hashtable_test.cc:64: | |
./src/hash_test_interface.h:148:12: error: no matching constructor for initialization of 'google::BaseHashtableInterface<google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, | |
<anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::iterator' | |
return iterator(ht_.end(), this); | |
^ ~~~~~~~~~~~~~~~ | |
src/hashtable_test.cc:508:46: note: in instantiation of member function 'google::BaseHashtableInterface<google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, | |
unsigned long, 18446744073709551615> > >::end' requested here | |
EXPECT_TRUE(this->ht_.begin() == this->ht_.end()); | |
^ | |
./src/testutil.h:49:9: note: expanded from macro 'EXPECT_TRUE' | |
if (!(cond)) { \ | |
^ | |
src/hashtable_test.cc:507:1: note: in instantiation of member function '<anonymous namespace>::TEST_onetype_HashtableAllTest_NormalIterators<google::HashtableInterface_SparseHashMap<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::Run' requested here | |
TYPED_TEST(HashtableAllTest, NormalIterators) { | |
^ | |
./src/testutil.h:160:7: note: expanded from macro 'TYPED_TEST' | |
Run(); \ | |
^ | |
src/hashtable_test.cc:507:1: note: in instantiation of member function '<anonymous namespace>::TEST_onetype_HashtableAllTest_NormalIterators<google::HashtableInterface_SparseHashMap<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::TEST_onetype_HashtableAllTest_NormalIterators' requested here | |
TYPED_TEST(HashtableAllTest, NormalIterators) { | |
^ | |
./src/testutil.h:170:68: note: expanded from macro 'TYPED_TEST' | |
TEST_onetype_##superclass##_##testname<superclass##_type1> t; \ | |
^ | |
./src/hash_test_interface.h:86:5: note: candidate constructor not viable: requires 0 arguments, but 2 were provided | |
iterator() : parent_(NULL) { } // this allows code like "iterator it;" | |
^ | |
./src/hash_test_interface.h:84:9: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 2 were provided | |
class iterator : public HT::iterator { | |
^ | |
In file included from src/hashtable_test.cc:64: | |
In file included from ./src/hash_test_interface.h:52: | |
./src/google/sparsehash/sparsehashtable.h:374:41: error: no matching constructor for initialization of 'iterator' (aka 'sparse_hashtable_iterator<std::__1::pair<const int, int>, int, <anonymous>::Hasher, | |
google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::SelectKey, google::sparse_hash_map<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::SetKey, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> | |
>') | |
iterator end() { return iterator(this, table.nonempty_end(), | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
./src/google/sparse_hash_map:153:63: note: in instantiation of member function 'google::sparse_hashtable<std::__1::pair<const int, int>, int, <anonymous>::Hasher, google::sparse_hash_map<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::SelectKey, google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, | |
<anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::SetKey, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::end' requested here | |
iterator end() { return rep.end(); } | |
^ | |
./src/hash_test_interface.h:148:25: note: in instantiation of member function 'google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, | |
18446744073709551615> >::end' requested here | |
return iterator(ht_.end(), this); | |
^ | |
src/hashtable_test.cc:508:46: note: in instantiation of member function 'google::BaseHashtableInterface<google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, | |
unsigned long, 18446744073709551615> > >::end' requested here | |
EXPECT_TRUE(this->ht_.begin() == this->ht_.end()); | |
^ | |
./src/testutil.h:49:9: note: expanded from macro 'EXPECT_TRUE' | |
if (!(cond)) { \ | |
^ | |
src/hashtable_test.cc:507:1: note: in instantiation of member function '<anonymous namespace>::TEST_onetype_HashtableAllTest_NormalIterators<google::HashtableInterface_SparseHashMap<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::Run' requested here | |
TYPED_TEST(HashtableAllTest, NormalIterators) { | |
^ | |
./src/testutil.h:160:7: note: expanded from macro 'TYPED_TEST' | |
Run(); \ | |
^ | |
src/hashtable_test.cc:507:1: note: in instantiation of member function '<anonymous namespace>::TEST_onetype_HashtableAllTest_NormalIterators<google::HashtableInterface_SparseHashMap<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::TEST_onetype_HashtableAllTest_NormalIterators' requested here | |
TYPED_TEST(HashtableAllTest, NormalIterators) { | |
^ | |
./src/testutil.h:170:68: note: expanded from macro 'TYPED_TEST' | |
TEST_onetype_##superclass##_##testname<superclass##_type1> t; \ | |
^ | |
./src/google/sparsehash/sparsehashtable.h:175:3: note: candidate constructor not viable: no known conversion from 'nonempty_iterator' (aka 'two_d_iterator<vector<sparsegroup<value_type, 48, | |
value_alloc_type>, vector_alloc> >') to 'st_iterator' (aka 'int') for 2nd argument | |
sparse_hashtable_iterator(const sparse_hashtable<V,K,HF,ExK,SetK,EqK,A> *h, | |
^ | |
./src/google/sparsehash/sparsehashtable.h:178:3: note: candidate constructor not viable: requires 0 arguments, but 3 were provided | |
sparse_hashtable_iterator() { } // not ever used internally | |
^ | |
./src/google/sparsehash/sparsehashtable.h:157:8: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided | |
struct sparse_hashtable_iterator { | |
^ | |
./src/google/sparsehash/sparsehashtable.h:925:34: error: no matching constructor for initialization of 'iterator' (aka 'sparse_hashtable_iterator<std::__1::pair<const int, int>, int, <anonymous>::Hasher, | |
google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::SelectKey, google::sparse_hash_map<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::SetKey, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> | |
>') | |
return pair<iterator,bool>(iterator(this, table.get_iter(pos.first), | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
./src/google/sparsehash/sparsehashtable.h:957:12: note: in instantiation of member function 'google::sparse_hashtable<std::__1::pair<const int, int>, int, <anonymous>::Hasher, google::sparse_hash_map<int, | |
int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::SelectKey, google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, | |
<anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::SetKey, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::insert_noresize' requested here | |
return insert_noresize(obj); | |
^ | |
./src/google/sparse_hash_map:258:67: note: in instantiation of member function 'google::sparse_hashtable<std::__1::pair<const int, int>, int, <anonymous>::Hasher, google::sparse_hash_map<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::SelectKey, google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, | |
<anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::SetKey, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> >::insert' requested here | |
pair<iterator, bool> insert(const value_type& obj) { return rep.insert(obj); } | |
^ | |
./src/hash_test_interface.h:295:47: note: in instantiation of member function 'google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, | |
18446744073709551615> >::insert' requested here | |
pair<typename HT::iterator, bool> r = ht_.insert(obj); | |
^ | |
src/hashtable_test.cc:509:13: note: in instantiation of member function 'google::BaseHashtableInterface<google::sparse_hash_map<int, int, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, | |
unsigned long, 18446744073709551615> > >::insert' requested here | |
this->ht_.insert(this->UniqueObject(1)); | |
^ | |
src/hashtable_test.cc:507:1: note: in instantiation of member function '<anonymous namespace>::TEST_onetype_HashtableAllTest_NormalIterators<google::HashtableInterface_SparseHashMap<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::Run' requested here | |
TYPED_TEST(HashtableAllTest, NormalIterators) { | |
^ | |
./src/testutil.h:160:7: note: expanded from macro 'TYPED_TEST' | |
Run(); \ | |
^ | |
src/hashtable_test.cc:507:1: note: in instantiation of member function '<anonymous namespace>::TEST_onetype_HashtableAllTest_NormalIterators<google::HashtableInterface_SparseHashMap<int, int, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<int, unsigned long, 18446744073709551615> > >::TEST_onetype_HashtableAllTest_NormalIterators' requested here | |
TYPED_TEST(HashtableAllTest, NormalIterators) { | |
^ | |
./src/testutil.h:170:68: note: expanded from macro 'TYPED_TEST' | |
TEST_onetype_##superclass##_##testname<superclass##_type1> t; \ | |
^ | |
./src/google/sparsehash/sparsehashtable.h:175:3: note: candidate constructor not viable: no known conversion from 'nonempty_iterator' (aka 'two_d_iterator<vector<sparsegroup<value_type, 48, | |
value_alloc_type>, vector_alloc> >') to 'st_iterator' (aka 'int') for 2nd argument | |
sparse_hashtable_iterator(const sparse_hashtable<V,K,HF,ExK,SetK,EqK,A> *h, | |
^ | |
./src/google/sparsehash/sparsehashtable.h:178:3: note: candidate constructor not viable: requires 0 arguments, but 3 were provided | |
sparse_hashtable_iterator() { } // not ever used internally | |
^ | |
./src/google/sparsehash/sparsehashtable.h:157:8: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided | |
struct sparse_hashtable_iterator { | |
^ | |
In file included from src/hashtable_test.cc:61: | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:502:5: error: implicit instantiation of undefined template '__static_assert_test<false>' | |
static_assert((is_same<typename allocator_type::value_type, value_type>::value), | |
^ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__config:490:35: note: expanded from macro 'static_assert' | |
typedef __static_assert_check<sizeof(__static_assert_test<(__b)>)> \ | |
^ | |
./src/google/sparsetable:1230:20: note: in instantiation of template class 'std::__1::vector<google::sparsegroup<std::__1::pair<const std::__1::basic_string<char>, std::__1::basic_string<char> >, 48, | |
<anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> >, <anonymous>::Alloc<google::sparsegroup<std::__1::pair<const std::__1::basic_string<char>, | |
std::__1::basic_string<char> >, 48, <anonymous>::Alloc<std::__1::pair<const std::__1::basic_string<char>, std::__1::basic_string<char> >, unsigned long, 18446744073709551615> >, unsigned long, | |
18446744073709551615> >' requested here | |
typedef typename group_vector_type::reference GroupsReference; | |
^ | |
./src/google/sparsehash/sparsehashtable.h:164:20: note: in instantiation of template class 'google::sparsetable<std::__1::pair<const std::__1::basic_string<char>, std::__1::basic_string<char> >, 48, | |
<anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> >' requested here | |
typedef typename sparsetable<V,DEFAULT_GROUP_SIZE,A>::nonempty_iterator | |
^ | |
./src/hash_test_interface.h:84:27: note: in instantiation of template class 'google::sparse_hashtable_iterator<std::__1::pair<const std::__1::basic_string<char>, std::__1::basic_string<char> >, | |
std::__1::basic_string<char>, <anonymous>::Hasher, google::sparse_hash_map<std::__1::basic_string<char>, std::__1::basic_string<char>, <anonymous>::Hasher, <anonymous>::Hasher, | |
<anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> >::SelectKey, google::sparse_hash_map<std::__1::basic_string<char>, std::__1::basic_string<char>, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> >::SetKey, <anonymous>::Hasher, | |
<anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> >' requested here | |
class iterator : public HT::iterator { | |
^ | |
src/hashtable_test.cc:508:25: note: in instantiation of member class 'google::BaseHashtableInterface<google::sparse_hash_map<std::__1::basic_string<char>, std::__1::basic_string<char>, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> > >::iterator' requested here | |
EXPECT_TRUE(this->ht_.begin() == this->ht_.end()); | |
^ | |
./src/testutil.h:49:9: note: expanded from macro 'EXPECT_TRUE' | |
if (!(cond)) { \ | |
^ | |
src/hashtable_test.cc:507:1: note: in instantiation of member function '<anonymous | |
namespace>::TEST_onetype_HashtableAllTest_NormalIterators<google::HashtableInterface_SparseHashMap<std::__1::basic_string<char>, std::__1::basic_string<char>, <anonymous>::Hasher, | |
<anonymous>::Hasher, <anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> > >::Run' requested here | |
TYPED_TEST(HashtableAllTest, NormalIterators) { | |
^ | |
./src/testutil.h:160:7: note: expanded from macro 'TYPED_TEST' | |
Run(); \ | |
^ | |
src/hashtable_test.cc:507:1: note: in instantiation of member function '<anonymous | |
namespace>::TEST_onetype_HashtableAllTest_NormalIterators<google::HashtableInterface_SparseHashMap<std::__1::basic_string<char>, std::__1::basic_string<char>, <anonymous>::Hasher, | |
<anonymous>::Hasher, <anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> > >::TEST_onetype_HashtableAllTest_NormalIterators' requested here | |
TYPED_TEST(HashtableAllTest, NormalIterators) { | |
^ | |
./src/testutil.h:194:68: note: expanded from macro 'TYPED_TEST' | |
TEST_onetype_##superclass##_##testname<superclass##_type7> t; \ | |
^ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__config:486:24: note: template is declared here | |
template <bool> struct __static_assert_test; | |
^ | |
src/hashtable_test.cc:512:20: error: invalid operands to binary expression ('typename HashtableInterface_SparseHashMap<basic_string<char>, basic_string<char>, Hasher, Hasher, Alloc<basic_string<char>, | |
unsigned long, 18446744073709551615> >::iterator' and 'google::BaseHashtableInterface<google::sparse_hash_map<std::__1::basic_string<char>, std::__1::basic_string<char>, <anonymous>::Hasher, | |
<anonymous>::Hasher, <anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> > >::iterator') | |
EXPECT_TRUE(it != this->ht_.end()); | |
~~ ^ ~~~~~~~~~~~~~~~ | |
./src/testutil.h:49:9: note: expanded from macro 'EXPECT_TRUE' | |
if (!(cond)) { \ | |
^ | |
src/hashtable_test.cc:507:1: note: in instantiation of member function '<anonymous | |
namespace>::TEST_onetype_HashtableAllTest_NormalIterators<google::HashtableInterface_SparseHashMap<std::__1::basic_string<char>, std::__1::basic_string<char>, <anonymous>::Hasher, | |
<anonymous>::Hasher, <anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> > >::Run' requested here | |
TYPED_TEST(HashtableAllTest, NormalIterators) { | |
^ | |
./src/testutil.h:160:7: note: expanded from macro 'TYPED_TEST' | |
Run(); \ | |
^ | |
src/hashtable_test.cc:507:1: note: in instantiation of member function '<anonymous | |
namespace>::TEST_onetype_HashtableAllTest_NormalIterators<google::HashtableInterface_SparseHashMap<std::__1::basic_string<char>, std::__1::basic_string<char>, <anonymous>::Hasher, | |
<anonymous>::Hasher, <anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> > >::TEST_onetype_HashtableAllTest_NormalIterators' requested here | |
TYPED_TEST(HashtableAllTest, NormalIterators) { | |
^ | |
./src/testutil.h:194:68: note: expanded from macro 'TYPED_TEST' | |
TEST_onetype_##superclass##_##testname<superclass##_type7> t; \ | |
^ | |
./src/google/sparsehash/libc_allocator_with_realloc.h:114:13: note: candidate template ignored: could not match 'libc_allocator_with_realloc<type-parameter-0-0>' against | |
'google::BaseHashtableInterface<google::sparse_hash_map<std::__1::basic_string<char>, std::__1::basic_string<char>, <anonymous>::Hasher, <anonymous>::Hasher, | |
<anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> > >::iterator' | |
inline bool operator!=(const libc_allocator_with_realloc<T>&, | |
^ | |
src/hashtable_test.cc:513:5: error: cannot increment value of type 'typename HashtableInterface_SparseHashMap<basic_string<char>, basic_string<char>, Hasher, Hasher, Alloc<basic_string<char>, unsigned | |
long, 18446744073709551615> >::iterator' | |
++it; | |
^ ~~ | |
src/hashtable_test.cc:514:20: error: invalid operands to binary expression ('typename HashtableInterface_SparseHashMap<basic_string<char>, basic_string<char>, Hasher, Hasher, Alloc<basic_string<char>, | |
unsigned long, 18446744073709551615> >::iterator' and 'google::BaseHashtableInterface<google::sparse_hash_map<std::__1::basic_string<char>, std::__1::basic_string<char>, <anonymous>::Hasher, | |
<anonymous>::Hasher, <anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> > >::iterator') | |
EXPECT_TRUE(it == this->ht_.end()); | |
~~ ^ ~~~~~~~~~~~~~~~ | |
./src/testutil.h:49:9: note: expanded from macro 'EXPECT_TRUE' | |
if (!(cond)) { \ | |
^ | |
./src/google/sparsehash/libc_allocator_with_realloc.h:108:13: note: candidate template ignored: could not match 'libc_allocator_with_realloc<type-parameter-0-0>' against | |
'google::BaseHashtableInterface<google::sparse_hash_map<std::__1::basic_string<char>, std::__1::basic_string<char>, <anonymous>::Hasher, <anonymous>::Hasher, | |
<anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> > >::iterator' | |
inline bool operator==(const libc_allocator_with_realloc<T>&, | |
^ | |
In file included from src/hashtable_test.cc:64: | |
In file included from ./src/hash_test_interface.h:52: | |
./src/google/sparsehash/sparsehashtable.h:372:41: error: no matching constructor for initialization of 'iterator' (aka 'sparse_hashtable_iterator<std::__1::pair<const std::__1::basic_string<char>, | |
std::__1::basic_string<char> >, std::__1::basic_string<char>, <anonymous>::Hasher, google::sparse_hash_map<std::__1::basic_string<char>, std::__1::basic_string<char>, <anonymous>::Hasher, | |
<anonymous>::Hasher, <anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> >::SelectKey, google::sparse_hash_map<std::__1::basic_string<char>, | |
std::__1::basic_string<char>, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> >::SetKey, <anonymous>::Hasher, | |
<anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> >') | |
iterator begin() { return iterator(this, table.nonempty_begin(), | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
./src/google/sparse_hash_map:152:63: note: in instantiation of member function 'google::sparse_hashtable<std::__1::pair<const std::__1::basic_string<char>, std::__1::basic_string<char> >, | |
std::__1::basic_string<char>, <anonymous>::Hasher, google::sparse_hash_map<std::__1::basic_string<char>, std::__1::basic_string<char>, <anonymous>::Hasher, <anonymous>::Hasher, | |
<anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> >::SelectKey, google::sparse_hash_map<std::__1::basic_string<char>, std::__1::basic_string<char>, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> >::SetKey, <anonymous>::Hasher, | |
<anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> >::begin' requested here | |
iterator begin() { return rep.begin(); } | |
^ | |
./src/hash_test_interface.h:145:25: note: in instantiation of member function 'google::sparse_hash_map<std::__1::basic_string<char>, std::__1::basic_string<char>, <anonymous>::Hasher, <anonymous>::Hasher, | |
<anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> >::begin' requested here | |
return iterator(ht_.begin(), this); | |
^ | |
src/hashtable_test.cc:508:25: note: in instantiation of member function 'google::BaseHashtableInterface<google::sparse_hash_map<std::__1::basic_string<char>, std::__1::basic_string<char>, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> > >::begin' requested here | |
EXPECT_TRUE(this->ht_.begin() == this->ht_.end()); | |
^ | |
./src/testutil.h:49:9: note: expanded from macro 'EXPECT_TRUE' | |
if (!(cond)) { \ | |
^ | |
src/hashtable_test.cc:507:1: note: in instantiation of member function '<anonymous | |
namespace>::TEST_onetype_HashtableAllTest_NormalIterators<google::HashtableInterface_SparseHashMap<std::__1::basic_string<char>, std::__1::basic_string<char>, <anonymous>::Hasher, | |
<anonymous>::Hasher, <anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> > >::Run' requested here | |
TYPED_TEST(HashtableAllTest, NormalIterators) { | |
^ | |
./src/testutil.h:160:7: note: expanded from macro 'TYPED_TEST' | |
Run(); \ | |
^ | |
src/hashtable_test.cc:507:1: note: in instantiation of member function '<anonymous | |
namespace>::TEST_onetype_HashtableAllTest_NormalIterators<google::HashtableInterface_SparseHashMap<std::__1::basic_string<char>, std::__1::basic_string<char>, <anonymous>::Hasher, | |
<anonymous>::Hasher, <anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> > >::TEST_onetype_HashtableAllTest_NormalIterators' requested here | |
TYPED_TEST(HashtableAllTest, NormalIterators) { | |
^ | |
./src/testutil.h:194:68: note: expanded from macro 'TYPED_TEST' | |
TEST_onetype_##superclass##_##testname<superclass##_type7> t; \ | |
^ | |
./src/google/sparsehash/sparsehashtable.h:175:3: note: candidate constructor not viable: no known conversion from 'nonempty_iterator' (aka 'two_d_iterator<vector<sparsegroup<value_type, 48, | |
value_alloc_type>, vector_alloc> >') to 'st_iterator' (aka 'int') for 2nd argument | |
sparse_hashtable_iterator(const sparse_hashtable<V,K,HF,ExK,SetK,EqK,A> *h, | |
^ | |
./src/google/sparsehash/sparsehashtable.h:178:3: note: candidate constructor not viable: requires 0 arguments, but 3 were provided | |
sparse_hashtable_iterator() { } // not ever used internally | |
^ | |
./src/google/sparsehash/sparsehashtable.h:157:8: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided | |
struct sparse_hashtable_iterator { | |
^ | |
In file included from src/hashtable_test.cc:64: | |
./src/hash_test_interface.h:89:15: error: type 'typename sparse_hash_map<basic_string<char>, basic_string<char>, Hasher, Hasher, Alloc<basic_string<char>, unsigned long, 18446744073709551615> >::iterator' | |
(aka 'sparse_hashtable_iterator<std::__1::pair<const std::__1::basic_string<char>, std::__1::basic_string<char> >, std::__1::basic_string<char>, <anonymous>::Hasher, | |
google::sparse_hash_map<std::__1::basic_string<char>, std::__1::basic_string<char>, <anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, | |
18446744073709551615> >::SelectKey, google::sparse_hash_map<std::__1::basic_string<char>, std::__1::basic_string<char>, <anonymous>::Hasher, <anonymous>::Hasher, | |
<anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> >::SetKey, <anonymous>::Hasher, <anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, | |
18446744073709551615> >') is not a direct or virtual base of 'google::BaseHashtableInterface<google::sparse_hash_map<std::__1::basic_string<char>, std::__1::basic_string<char>, <anonymous>::Hasher, | |
<anonymous>::Hasher, <anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> > >::iterator' | |
: HT::iterator(it), parent_(parent) { } | |
^~~~~~~~ | |
./src/hash_test_interface.h:145:12: note: in instantiation of member function 'google::BaseHashtableInterface<google::sparse_hash_map<std::__1::basic_string<char>, std::__1::basic_string<char>, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> > >::iterator::iterator' requested here | |
return iterator(ht_.begin(), this); | |
^ | |
src/hashtable_test.cc:508:25: note: in instantiation of member function 'google::BaseHashtableInterface<google::sparse_hash_map<std::__1::basic_string<char>, std::__1::basic_string<char>, | |
<anonymous>::Hasher, <anonymous>::Hasher, <anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> > >::begin' requested here | |
EXPECT_TRUE(this->ht_.begin() == this->ht_.end()); | |
^ | |
./src/testutil.h:49:9: note: expanded from macro 'EXPECT_TRUE' | |
if (!(cond)) { \ | |
^ | |
src/hashtable_test.cc:507:1: note: in instantiation of member function '<anonymous | |
namespace>::TEST_onetype_HashtableAllTest_NormalIterators<google::HashtableInterface_SparseHashMap<std::__1::basic_string<char>, std::__1::basic_string<char>, <anonymous>::Hasher, | |
<anonymous>::Hasher, <anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> > >::Run' requested here | |
TYPED_TEST(HashtableAllTest, NormalIterators) { | |
^ | |
./src/testutil.h:160:7: note: expanded from macro 'TYPED_TEST' | |
Run(); \ | |
^ | |
src/hashtable_test.cc:507:1: note: in instantiation of member function '<anonymous | |
namespace>::TEST_onetype_HashtableAllTest_NormalIterators<google::HashtableInterface_SparseHashMap<std::__1::basic_string<char>, std::__1::basic_string<char>, <anonymous>::Hasher, | |
<anonymous>::Hasher, <anonymous>::Alloc<std::__1::basic_string<char>, unsigned long, 18446744073709551615> > >::TEST_onetype_HashtableAllTest_NormalIterators' requested here | |
TYPED_TEST(HashtableAllTest, NormalIterators) { | |
^ | |
./src/testutil.h:194:68: note: expanded from macro 'TYPED_TEST' | |
TEST_onetype_##superclass##_##testname<superclass##_type7> t; \ | |
^ | |
fatal error: too many errors emitted, stopping now [-ferror-limit=] | |
15 warnings and 20 errors generated. | |
make[1]: *** [hashtable_test.o] Error 1 | |
make: *** [all] Error 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Similar with sparsehash-2.0.2 on Mavericks:
fatal error: too many errors emitted, stopping now [-ferror-limit=]
3 warnings and 20 errors generated.