Package: libsparsehash-dev
version: 2.0.2-1

When I'm trying to build my code with any modern compiler (clang++-6.0 and
higher) that uses this library I get error:

> /usr/include/sparsehash/dense_hash_map:106:10: fatal error:
> 'tr1/functional' file not found
> #include HASH_FUN_H                 // for hash<>
>          ^
> /usr/include/sparsehash/internal/sparseconfig.h:10:20: note: expanded from
> macro 'HASH_FUN_H'
> #define HASH_FUN_H <tr1/functional>
>                    ^~~~~~~~~~~~~~~~
> 1 error generated.
>
This caused by hardcoded config file

/usr/include/sparsehash/internal/sparseconfig.h

in https://packages.debian.org/en/sid/all/libsparsehash-dev/filelist.
<functional> is not part of tr for a long time in c++. I think this
hardcoded config should be regenerated with newer compiler.

Reply via email to