Fixed a compile error with Clang 5.0 on OS Mavericks
parent
d5271dfff7
commit
5a71336ddd
|
|
@ -36,15 +36,14 @@ protected:
|
||||||
|
|
||||||
/// We store the forest in an STL map, but parents are done with pointers
|
/// We store the forest in an STL map, but parents are done with pointers
|
||||||
struct Entry {
|
struct Entry {
|
||||||
typedef std::map<KEY, Entry> Map;
|
typename std::map<KEY, Entry>::iterator parent_;
|
||||||
typename Map::iterator parent_;
|
|
||||||
size_t rank_;
|
size_t rank_;
|
||||||
Entry() {}
|
Entry() {}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef typename Entry::Map::iterator iterator;
|
typedef typename std::map<KEY, Entry> Map;
|
||||||
mutable typename Entry::Map entries_;
|
typedef typename Map::iterator iterator;
|
||||||
|
mutable Map entries_;
|
||||||
|
|
||||||
/// Given key, find iterator to initial entry
|
/// Given key, find iterator to initial entry
|
||||||
iterator find__(const KEY& key) const {
|
iterator find__(const KEY& key) const {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue