Skip to content

Commit 18e3da2

Browse files
committed
Fixed build on Windows
1 parent 1db2f78 commit 18e3da2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ut/utils.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#pragma once
22

3+
#include <clickhouse/base/platform.h>
4+
35
#include <chrono>
46
#include <cstring>
57
#include <ostream>
@@ -69,6 +71,9 @@ inline ostream & operator<<(ostream & ostr, const chrono::duration<R, P> & d) {
6971
}
7072
}
7173

74+
#ifdef _win_
75+
#define _SILENCE_CXX17_RESULT_OF_DEPRECATION_WARNING
76+
#endif
7277
// Since result_of is deprecated in C++20, and invoke_result_of is unavailable until C++20...
7378
template <class F, class... ArgTypes>
7479
using my_result_of_t =

0 commit comments

Comments
 (0)