Skip to content

Commit 81126d7

Browse files
committed
Resolve modernize-deprecated-headers
1 parent e968842 commit 81126d7

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

benchmark/Utilities.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef __UTILITIES_H__
22
#define __UTILITIES_H__
3-
#include <time.h>
3+
#include <ctime>
44

55
#include <random>
66

examples/DialExample/dial_example.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <math.h>
1+
#include <cmath>
22

33
#include <CXXGraph/CXXGraph.hpp>
44
#include <memory>

examples/PartitionExample/partition_example.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#include <stdlib.h>
2-
#include <time.h>
1+
#include <cstdlib>
2+
#include <ctime>
33

44
#include <iterator>
55

include/CXXGraph/Graph/Algorithm/BestFirstSearch_impl.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ BestFirstSearchResult<T> Graph<T>::best_first_search(
107107
template <typename T>
108108
const std::vector<Node<T>> Graph<T>::concurrency_breadth_first_search(
109109
const Node<T> &start, size_t num_threads) const {
110+
num_threads = 1;
110111
std::vector<Node<T>> bfs_result;
111112
// check is exist node in the graph
112113
auto &nodeSet = Graph<T>::getNodeSet();

test/Utilities.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef __UTILITIES_H__
22
#define __UTILITIES_H__
3-
#include <time.h>
3+
#include <ctime>
44

55
#include <memory>
66
#include <random>

0 commit comments

Comments
 (0)