Our date implementation uses int64_t for years, but some of the code was not changed; clang complains, so use the correct casts to make it happy.
We need 64-bit year and days representation to support the boundary values of the CQL data type, which is implemented using Joda Time library's DateTime type.
This patch imports the "date.h" date and time library based on the C++11 <chrono> header, which is proposed for standadization: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0355r1.html We need it to implement support for the CQL date type. Import repository https://github.com/HowardHinnant/date Import commit: commit 2935f80109b8cfc15eb1243afe35f7ec3530f971 Author: Howard Hinnant <howard.hinnant@gmail.com> Date: Sun Jan 1 15:02:08 2017 -0500 Have get_version check for the file named version first