|
Boost : |
Subject: [boost] [candidate bloom_filter] Default Sequence
From: JOAQUIN M. LOPEZ MUÑOZ (joaquin_at_[hidden])
Date: 2009-06-10 13:36:04
Currently, the default Sequence template arg is
class Sequence = fusion::vector<
detail::default_hash<0>,
detail::default_hash<1>,
detail::default_hash<2>
>
which implies the default K is 3. I propose to
generalize this a bit so that we have something like
template<typename K>
default_hash_sequence...;
such that default_hash_sequence<K> is the fusion
sequence default_hash<0>,...,default_hash<K-1>
(I don't know Fusion but I'm sure this can be done) and
then put
class Sequence = default_hash_sequence<3>
So, a user can easily set
bloom_filter<foo,default_hash_sequence<K> >
with a K other than 3.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk