[Groonga-commit] groonga/grnxx at e80568b [master] Add a constructor.

Back to archive index

susumu.yata null+****@clear*****
Fri Jun 21 13:42:22 JST 2013


susumu.yata	2013-06-21 13:42:22 +0900 (Fri, 21 Jun 2013)

  New Revision: e80568b503f4219062246b596a3b32fbdbcd32a3
  https://github.com/groonga/grnxx/commit/e80568b503f4219062246b596a3b32fbdbcd32a3

  Message:
    Add a constructor.

  Modified files:
    lib/grnxx/geo_point.hpp

  Modified: lib/grnxx/geo_point.hpp (+2 -0)
===================================================================
--- lib/grnxx/geo_point.hpp    2013-06-21 12:45:44 +0900 (ec3ffb3)
+++ lib/grnxx/geo_point.hpp    2013-06-21 13:42:22 +0900 (db43611)
@@ -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 };
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index