Skip to content

Commit 9ff6007

Browse files
committed
[test] Dictionary data member type contains a std::function
1 parent d338523 commit 9ff6007

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

roottest/root/meta/rootcling/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,7 @@ ROOTTEST_ADD_TEST(selectUnion
2828
ROOTTEST_ADD_TEST(ROOT10798
2929
COMMAND ${ROOT_rootcling_CMD} -f ROOT10798Dict.cxx ${CMAKE_CURRENT_SOURCE_DIR}/ROOT10798LinkDef.h)
3030

31+
# Issue #18833
32+
ROOTTEST_ADD_TEST(streamerInfoStdFunction
33+
COMMAND ${ROOT_rootcling_CMD} -f streamerInfoStdFunction.Dict.cc ${CMAKE_CURRENT_SOURCE_DIR}/streamerInfoStdFunction.h -reflex ${CMAKE_CURRENT_SOURCE_DIR}/streamerInfoStdFunction.xml
34+
OUTREF streamerInfoStdFunction.ref)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include <functional>
2+
#include <vector>
3+
4+
struct Foo {};
5+
struct egammaMVACalibTool
6+
{
7+
std::vector<std::vector<std::function<float(int, const Foo*)> > > m_funcs;
8+
};
9+

roottest/root/meta/rootcling/streamerInfoStdFunction.ref

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<lcgdict>
2+
<class name="egammaMVACalibTool" />
3+
</lcgdict>
4+

0 commit comments

Comments
 (0)