From 5059a712705b9095a3bf31336e54bb186bccfaf3 Mon Sep 17 00:00:00 2001 From: Theodore Tsirpanis Date: Thu, 13 Feb 2025 20:30:06 +0200 Subject: [PATCH] Add missing headers. Fixes compile errors with the newly released Visual Studio 17.13. --- tiledb/common/heap_profiler.cc | 7 +++---- tiledb/sm/stats/duration_instrument.h | 10 ++++------ 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/tiledb/common/heap_profiler.cc b/tiledb/common/heap_profiler.cc index f8c4f504b2d..54050d9adad 100644 --- a/tiledb/common/heap_profiler.cc +++ b/tiledb/common/heap_profiler.cc @@ -30,13 +30,13 @@ * This file contains the implementation of the HeapProfiler class. */ +#include #include #include #include "tiledb/common/heap_profiler.h" -namespace tiledb { -namespace common { +namespace tiledb::common { HeapProfiler heap_profiler; @@ -332,5 +332,4 @@ void HeapProfiler::dump_internal() { file_stream.close(); } -} // namespace common -} // namespace tiledb +} // namespace tiledb::common diff --git a/tiledb/sm/stats/duration_instrument.h b/tiledb/sm/stats/duration_instrument.h index 5158a7073b0..1ab12b887c7 100644 --- a/tiledb/sm/stats/duration_instrument.h +++ b/tiledb/sm/stats/duration_instrument.h @@ -33,13 +33,13 @@ #ifndef TILEDB_DURATION_INSTRUMENT_H #define TILEDB_DURATION_INSTRUMENT_H +#include + #include "tiledb/common/common.h" using namespace tiledb::common; -namespace tiledb { -namespace sm { -namespace stats { +namespace tiledb::sm::stats { class Stats; @@ -81,8 +81,6 @@ class DurationInstrument { std::chrono::high_resolution_clock::time_point start_time_; }; -} // namespace stats -} // namespace sm -} // namespace tiledb +} // namespace tiledb::sm::stats #endif // TILEDB_DURATION_INSTRUMENT_H