Skip to content

Commit 4c40bd6

Browse files
committed
compiler errors
1 parent b018f8d commit 4c40bd6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/basic/config.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ limitations under the License.
1919
#include <iostream>
2020
#include <numeric>
2121
#include <thread>
22+
#include <chrono>
2223
#include "util/command_line_parser.h"
2324
#include "config.h"
2425
#include "util/util.h"
@@ -918,7 +919,7 @@ Config::Config(int argc, const char **argv, bool check_io, CommandLineParser& pa
918919
trace_pt_membuf = hit_membuf;
919920

920921
if (command != Config::version) {
921-
static const std::chrono::time_point release_time = std::chrono::system_clock::from_time_t(1771090269);
922+
static const std::chrono::time_point<std::chrono::system_clock> release_time = std::chrono::system_clock::from_time_t(1771090269);
922923
if (std::chrono::system_clock::now() - release_time > std::chrono::days(180)) {
923924
set_color(Color::YELLOW, true);
924925
cerr << "Warning: This version of DIAMOND is more than 180 days old. It is recommended to always use the latest version." << endl;

0 commit comments

Comments
 (0)