Skip to content

Commit d360c4b

Browse files
Moving mpl_tools.h to module 'Algorithm'
1 parent a1b0bb6 commit d360c4b

5 files changed

Lines changed: 9 additions & 3 deletions

File tree

Algorithm/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ set(TEST_SRCS
4343
test/parser.cxx
4444
test/tableview.cxx
4545
test/pageparser.cxx
46+
test/test_mpl_tools.cxx
4647
)
4748

4849
O2_GENERATE_TESTS(

Utilities/DataCompression/include/DataCompression/mpl_tools.h renamed to Algorithm/include/Algorithm/mpl_tools.h

File renamed without changes.

Utilities/DataCompression/test/test_mpl_tools.cxx renamed to Algorithm/test/test_mpl_tools.cxx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
#define BOOST_TEST_MAIN
1818
#define BOOST_TEST_DYN_LINK
1919
#include <boost/test/unit_test.hpp>
20-
#include "../include/DataCompression/dc_primitives.h"
21-
#include "../include/DataCompression/mpl_tools.h"
20+
#include "../include/Algorithm/mpl_tools.h"
2221
#include <boost/mpl/size.hpp>
2322
#include <boost/type.hpp>
2423
#include <boost/mpl/range_c.hpp>
@@ -28,11 +27,17 @@
2827
#include <boost/mpl/vector_c.hpp>
2928
#include <boost/mpl/placeholders.hpp>
3029
#include <boost/mpl/lambda.hpp>
30+
#include <boost/mpl/string.hpp> // see note below
3131
#include <iostream>
3232
#include <iomanip>
3333
#include <vector>
3434
#include <type_traits>
3535

36+
// FIXME: mpl/string.hpp required to be included to avoid compilation error
37+
// error: no matching function for call to ‘assertion_failed ...' in the mpl::for_each
38+
// implementation (BOOST_MPL_ASSERT check). Not fully understood as simply including
39+
// mpl/assert.hpp does not help. Maybe it's an inconssitency in the do_typewrap meta
40+
// program
3641
namespace bmpl = boost::mpl;
3742

3843
// defining a list of known data types

Utilities/DataCompression/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ EndForEach (_file RANGE 0 ${_length})
3737
endif()
3838

3939
set(TEST_SRCS
40-
test/test_mpl_tools.cxx
4140
test/test_dc_primitives.cxx
4241
test/test_Fifo.cxx
4342
test/test_DataGenerator.cxx

cmake/O2Dependencies.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,6 +1364,7 @@ o2_define_bucket(
13641364

13651365
DEPENDENCIES
13661366
Headers
1367+
common_boost_bucket
13671368

13681369
INCLUDE_DIRECTORIES
13691370
)

0 commit comments

Comments
 (0)