Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 917795
Collapse All | Expand All

(-)a/include/Lucene.h (-2 / +2 lines)
Lines 128-141 Link Here
128
};
128
};
129
129
130
template <class TYPE>
130
template <class TYPE>
131
struct luceneHash : std::unary_function<TYPE, std::size_t> {
131
struct luceneHash {
132
    std::size_t operator()(const TYPE& type) const {
132
    std::size_t operator()(const TYPE& type) const {
133
        return type ? type->hashCode() : 0;
133
        return type ? type->hashCode() : 0;
134
    }
134
    }
135
};
135
};
136
136
137
template <class TYPE>
137
template <class TYPE>
138
struct luceneWeakHash : std::unary_function<TYPE, std::size_t> {
138
struct luceneWeakHash {
139
    std::size_t operator()(const TYPE& type) const {
139
    std::size_t operator()(const TYPE& type) const {
140
        return type.expired() ? 0 : type.lock()->hashCode();
140
        return type.expired() ? 0 : type.lock()->hashCode();
141
    }
141
    }

Return to bug 917795