Skip to content

Commit 82dc8fe

Browse files
unit_thread_pool.cc: add forgotten <random> include (#4690)
At least when building with `gcc` this source needs to include `<random>`, otherwise it fails to compile. --- TYPE: NO_HISTORY DESC: Add a missing include into `unit_thread_pool.cc` --------- Co-authored-by: Theodore Tsirpanis <[email protected]>
1 parent 8a9b23d commit 82dc8fe

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

test/src/unit-tile-metadata-generator.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
* Tests the TileMetadataGenerator class.
3131
*/
3232

33+
#include <random>
34+
3335
#include <test/support/tdb_catch.h>
3436
#include "test/support/src/helpers.h"
3537
#include "tiledb/common/common.h"

test/src/unit-tile-metadata.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
* load_tile_*_values and get_tile_* apis of fragment metadata.
3232
*/
3333

34+
#include <random>
35+
3436
#include <test/support/tdb_catch.h>
3537
#include "test/support/src/helpers.h"
3638
#include "tiledb/sm/c_api/tiledb_struct_def.h"

tiledb/common/thread_pool/test/unit_thread_pool.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#include <atomic>
3838
#include <cstdio>
3939
#include <iostream>
40+
#include <random>
4041
#include <vector>
4142

4243
#include "tiledb/common/thread_pool.h"

tiledb/sm/query/readers/aggregators/test/bench_aggregators.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
* Benchmarks the `AggregateWithCount` class.
3131
*/
3232

33+
#include <random>
34+
3335
#include "tiledb/common/common.h"
3436
#include "tiledb/sm/query/readers/aggregators/aggregate_buffer.h"
3537
#include "tiledb/sm/query/readers/aggregators/aggregate_with_count.h"

0 commit comments

Comments
 (0)