Skip to content

src/btllib/bloom_filter.cpp:250:10: error: call to constructor of 'NtHash' is ambiguous #117

@yurivict

Description

@yurivict

Build fails on non-64-bit systems:

/wrkdirs/usr/ports/biology/btllib/work/btllib-1.7.0/src/btllib/bloom_filter.cpp:250:10: error: call to constructor of 'NtHash' is ambiguous
  250 |   NtHash nthash(seq, seq_len, get_hash_num(), get_k());
      |          ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/btllib/nthash_kmer.hpp:248:3: note: candidate constructor
  248 |   NtHash(const char* seq,
      |   ^
../include/btllib/nthash_kmer.hpp:278:3: note: candidate constructor
  278 |   NtHash(const std::string& seq,
      |   ^
/wrkdirs/usr/ports/biology/btllib/work/btllib-1.7.0/src/btllib/bloom_filter.cpp:260:10: error: call to constructor of 'NtHash' is ambiguous
  260 |   NtHash nthash(seq, seq_len, get_hash_num(), get_k());
      |          ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/btllib/nthash_kmer.hpp:248:3: note: candidate constructor
  248 |   NtHash(const char* seq,
      |   ^
../include/btllib/nthash_kmer.hpp:278:3: note: candidate constructor
  278 |   NtHash(const std::string& seq,
      |   ^
/wrkdirs/usr/ports/biology/btllib/work/btllib-1.7.0/src/btllib/bloom_filter.cpp:273:10: error: call to constructor of 'NtHash' is ambiguous
  273 |   NtHash nthash(seq, seq_len, get_hash_num(), get_k());
      |          ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/btllib/nthash_kmer.hpp:248:3: note: candidate constructor
  248 |   NtHash(const char* seq,
      |   ^
../include/btllib/nthash_kmer.hpp:278:3: note: candidate constructor
  278 |   NtHash(const std::string& seq,
      |   ^
3 errors generated.

Version: 1.7.0
clang-16
FreeBSD 14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions