Skip to content

Commit de84ef8

Browse files
committed
Include what you use in Algorithm
1 parent ca3e2cc commit de84ef8

File tree

10 files changed

+17
-2
lines changed

10 files changed

+17
-2
lines changed

Algorithm/include/Algorithm/BitstreamReader.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
#include <type_traits>
2121
#include <bitset>
22+
#include <utility>
23+
#include <string>
2224

2325
namespace o2
2426
{

Algorithm/include/Algorithm/FlattenRestore.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
/// @brief Utilities to copy complex objects to flat buffer and restore
1919

2020
#include <type_traits>
21+
#include <utility>
2122

2223
namespace o2::algorithm
2324
{

Algorithm/include/Algorithm/PageParser.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
#include <cassert>
2323
#include <type_traits>
2424
#include <stdexcept>
25+
#include <set>
26+
#include <algorithm>
2527

2628
namespace o2
2729
{

Algorithm/test/StaticSequenceAllocator.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
/// @since 2017-09-21
1515
/// @brief An allocator for static sequences of object types
1616

17+
#include <memory>
18+
1719
namespace o2
1820
{
1921
namespace algorithm

Algorithm/test/o2formatparser.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <iostream>
2222
#include <iomanip>
2323
#include <cstring> // memcmp
24+
#include <vector>
2425
#include "Headers/DataHeader.h" // hexdump, DataHeader
2526
#include "../include/Algorithm/O2FormatParser.h"
2627

Algorithm/test/pageparser.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
#include <iostream>
2222
#include <iomanip>
2323
#include <vector>
24+
#include <memory>
25+
#include <utility>
2426
#include "Headers/DataHeader.h" // hexdump
2527
#include "../include/Algorithm/PageParser.h"
2628
#include "StaticSequenceAllocator.h"

Algorithm/test/test_BitstreamReader.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <array>
2424
#include <vector>
2525
#include <bitset>
26+
#include <string>
2627
#include "../include/Algorithm/BitstreamReader.h"
2728

2829
namespace o2

Algorithm/test/test_FlattenRestore.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "../include/Algorithm/FlattenRestore.h"
2222
#include <vector>
2323
#include <algorithm>
24+
#include <cstdlib>
2425

2526
namespace flatten = o2::algorithm::flatten;
2627

Algorithm/test/test_RangeTokenizer.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
#include "../include/Algorithm/RangeTokenizer.h"
2222
#include <vector>
2323
#include <map>
24+
#include <string>
25+
#include <utility>
2426

2527
using RangeTokenizer = o2::RangeTokenizer;
2628

Algorithm/test/test_mpl_tools.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include <iomanip>
3434
#include <vector>
3535
#include <type_traits>
36+
#include <cstdint>
3637

3738
// FIXME: mpl/string.hpp required to be included to avoid compilation error
3839
// error: no matching function for call to ‘assertion_failed ...' in the mpl::for_each
@@ -42,7 +43,7 @@
4243
namespace bmpl = boost::mpl;
4344

4445
// defining a list of known data types
45-
using knowntypes = bmpl::vector<float, double, long double, short, long>;
46+
using knowntypes = bmpl::vector<float, double, long double, int16_t, int64_t>;
4647

4748
// get the index of an element in a type sequence
4849
template <typename Iterator, typename End, typename Element, typename T, int Count = 0>
@@ -132,7 +133,7 @@ struct checktype {
132133

133134
BOOST_AUTO_TEST_CASE(test_mpl_fold)
134135
{
135-
using types = bmpl::vector<long, float, short, double, float, long, long double>;
136+
using types = bmpl::vector<int64_t, float, int16_t, double, float, int64_t, long double>;
136137
std::cout << std::endl
137138
<< "checking types:" << std::endl;
138139
bmpl::for_each<types>(checktype());

0 commit comments

Comments
 (0)