The new on-disk cache implementaion

Juli Mallett juli at clockworksquid.com
Sun Apr 26 00:05:39 PDT 2015


Try replacing ::const_iterator in any function which calls erase using
the iterator with just ::iterator, if that makes sense.  I have not
really done enough testing on Linux and with libstdc++ instead of
libc++.

On Sat, Apr 25, 2015 at 11:48 PM, Chris Bennett <chris at ceegeebee.com> wrote:
> I see from your pull request comment that you are not building on Linux
> primarily.  I've now hit the following.  I don't know enough about C++ to
> know how to even start.  Any ideas?  Thanks!
>
> root at 42e3e050aaa7:/data/wanproxy/programs/wanproxy# make 2>&1 | grep 'error:
> '
> ../../xcodec/xcodec_cache_disk.cc:196:29: error: no matching function for
> call to 'std::map<long unsigned int, long unsigned int, std::less<long
> unsigned int>, std::allocator<std::pair<const long unsigned int, long
> unsigned int> > >::erase(std::map<long unsigned int, long unsigned int,
> std::less<long unsigned int>, std::allocator<std::pair<const long unsigned
> int, long unsigned int> > >::const_iterator&)'
> ../../xcodec/xcodec_cache_disk.cc:257:29: error: no matching function for
> call to 'std::map<long unsigned int, long unsigned int, std::less<long
> unsigned int>, std::allocator<std::pair<const long unsigned int, long
> unsigned int> > >::erase(std::map<long unsigned int, long unsigned int,
> std::less<long unsigned int>, std::allocator<std::pair<const long unsigned
> int, long unsigned int> > >::const_iterator&)'
> ../../xcodec/xcodec_cache_disk.cc:344:32: error: no matching function for
> call to '__gnu_cxx::hash_map<Tag64, long unsigned
> int>::erase(__gnu_cxx::hash_map<Tag64, long unsigned int>::const_iterator&)'
> ../../xcodec/xcodec_cache_disk.cc:410:33: error: no matching function for
> call to '__gnu_cxx::hash_map<Tag64, long unsigned
> int>::erase(__gnu_cxx::hash_map<Tag64, long unsigned int>::const_iterator&)'
> ../../xcodec/xcodec_cache_disk.cc:499:29: error: no matching function for
> call to 'std::map<short unsigned int,
> XCodecDiskCache*>::erase(std::map<short unsigned int,
> XCodecDiskCache*>::const_iterator&)'
> ../../xcodec/xcodec_cache_disk.cc:719:30: error: no matching function for
> call to '__gnu_cxx::hash_map<Tag64, long unsigned
> int>::erase(__gnu_cxx::hash_map<Tag64, long unsigned int>::const_iterator&)'
> ../../xcodec/xcodec_cache_disk.cc:728:30: error: no matching function for
> call to '__gnu_cxx::hash_map<Tag64, long unsigned
> int>::erase(__gnu_cxx::hash_map<Tag64, long unsigned int>::const_iterator&)'
> ../../xcodec/xcodec_cache_disk.cc:745:31: error: no matching function for
> call to '__gnu_cxx::hash_map<Tag64, long unsigned
> int>::erase(__gnu_cxx::hash_map<Tag64, long unsigned int>::const_iterator&)'
>


More information about the wanproxy mailing list