Navigation Menu

Skip to content

Commit

Permalink
Add a constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yata committed Jun 21, 2013
1 parent 7ac9b89 commit e80568b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/grnxx/geo_point.hpp
Expand Up @@ -37,6 +37,8 @@ union GeoPoint {
public:
// Trivial default constructor.
GeoPoint() = default;
// Copy the lat/long as uint64_t.
explicit GeoPoint(uint64_t x) : value_(x) {}
// Copy the lat/long.
GeoPoint(int32_t latitude, int32_t longitude) : value_() {
Point point{ latitude, longitude };
Expand Down

0 comments on commit e80568b

Please sign in to comment.