Skip to content

Commit 3247973

Browse files
Add missing headers. (#5454)
Fixes compile errors with the newly released Visual Studio 17.13. --- TYPE: BUG DESC: Fix compile errors with Visual Studio 2022 17.13.
1 parent ab6c52e commit 3247973

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

tiledb/common/heap_profiler.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
* This file contains the implementation of the HeapProfiler class.
3131
*/
3232

33+
#include <chrono>
3334
#include <fstream>
3435
#include <iostream>
3536

3637
#include "tiledb/common/heap_profiler.h"
3738

38-
namespace tiledb {
39-
namespace common {
39+
namespace tiledb::common {
4040

4141
HeapProfiler heap_profiler;
4242

@@ -332,5 +332,4 @@ void HeapProfiler::dump_internal() {
332332
file_stream.close();
333333
}
334334

335-
} // namespace common
336-
} // namespace tiledb
335+
} // namespace tiledb::common

tiledb/sm/stats/duration_instrument.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
#ifndef TILEDB_DURATION_INSTRUMENT_H
3434
#define TILEDB_DURATION_INSTRUMENT_H
3535

36+
#include <chrono>
37+
3638
#include "tiledb/common/common.h"
3739

3840
using namespace tiledb::common;
3941

40-
namespace tiledb {
41-
namespace sm {
42-
namespace stats {
42+
namespace tiledb::sm::stats {
4343

4444
class Stats;
4545

@@ -81,8 +81,6 @@ class DurationInstrument {
8181
std::chrono::high_resolution_clock::time_point start_time_;
8282
};
8383

84-
} // namespace stats
85-
} // namespace sm
86-
} // namespace tiledb
84+
} // namespace tiledb::sm::stats
8785

8886
#endif // TILEDB_DURATION_INSTRUMENT_H

0 commit comments

Comments
 (0)