Skip to content

Commit

Permalink
Value-init hash object to suppress clang warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jbytheway committed Sep 21, 2019
1 parent faebaa1 commit fb9bd10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coordinates.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ namespace std
template<typename Point, coords::origin Origin, coords::scale Scale>
struct hash<coords::coord_point<Point, Origin, Scale>> {
std::size_t operator()( const coords::coord_point<Point, Origin, Scale> &p ) const {
const hash<Point> h;
const hash<Point> h{};
return h( p.raw() );
}
};
Expand Down

0 comments on commit fb9bd10

Please sign in to comment.