Skip to content

Commit

Permalink
Merge pull request #5 from petergjoel/clang_cleanup
Browse files Browse the repository at this point in the history
fixed to work with clang (linux)
  • Loading branch information
petergjoel authored Feb 10, 2020
2 parents 0953dc0 + 7c19994 commit 121154f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion benchmark/binarywrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ namespace ptrie
*/
friend bool operator<=(const binarywrapper_t &enc1,
const binarywrapper_t &enc2) {
return enc2 <= enc1;
return enc2 >= enc1;
}

private:
Expand Down
3 changes: 2 additions & 1 deletion src/ptrie/ptrie_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ namespace ptrie {
using pt = set_stable<KEY, HEAPBOUND, SPLITBOUND, ALLOCSIZE, T, I>;
#endif
public:
using pt::set_stable;
using typename pt::set_stable;
map() : pt() {};
map(map&&) = default;
map& operator=(map&&) = default;
T& get_data(I index);
Expand Down
2 changes: 1 addition & 1 deletion test/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ struct ptrie::byte_iterator<type_t>
}

static constexpr bool continious(){
return {false};
return false;
}
};

Expand Down
2 changes: 1 addition & 1 deletion test/stable_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ struct ptrie::byte_iterator<type_t>
}

static constexpr bool continious(){
return {false};
return false;
}
};

Expand Down

0 comments on commit 121154f

Please sign in to comment.