Skip to content

Commit 8f05442

Browse files
authored
Resolve modernize-deprecated-headers (#555)
1 parent e968842 commit 8f05442

File tree

5 files changed

+6
-9
lines changed

5 files changed

+6
-9
lines changed

benchmark/Utilities.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#ifndef __UTILITIES_H__
22
#define __UTILITIES_H__
3-
#include <time.h>
4-
3+
#include <ctime>
54
#include <random>
65

76
#include "CXXGraph/CXXGraph.hpp"

examples/DialExample/dial_example.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#include <math.h>
2-
31
#include <CXXGraph/CXXGraph.hpp>
2+
#include <cmath>
43
#include <memory>
54

65
using std::make_shared;

examples/PartitionExample/partition_example.cpp

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

65
#include "CXXGraph/CXXGraph.hpp"

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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#ifndef __UTILITIES_H__
22
#define __UTILITIES_H__
3-
#include <time.h>
4-
3+
#include <ctime>
54
#include <memory>
65
#include <random>
76

0 commit comments

Comments
 (0)