summaryrefslogtreecommitdiff
path: root/libs/fusion/test/support
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2015-04-08 03:09:47 +0000
committer <>2015-05-05 14:37:32 +0000
commitf2541bb90af059680aa7036f315f052175999355 (patch)
treea5b214744b256f07e1dc2bd7273035a7808c659f /libs/fusion/test/support
parented232fdd34968697a68783b3195b1da4226915b5 (diff)
downloadboost-tarball-master.tar.gz
Imported from /home/lorry/working-area/delta_boost-tarball/boost_1_58_0.tar.bz2.HEADboost_1_58_0master
Diffstat (limited to 'libs/fusion/test/support')
-rw-r--r--libs/fusion/test/support/pair_container.hpp27
-rw-r--r--libs/fusion/test/support/pair_deque.cpp17
-rw-r--r--libs/fusion/test/support/pair_list.cpp17
-rw-r--r--libs/fusion/test/support/pair_map.cpp17
-rw-r--r--libs/fusion/test/support/pair_set.cpp17
-rw-r--r--libs/fusion/test/support/pair_vector.cpp17
6 files changed, 112 insertions, 0 deletions
diff --git a/libs/fusion/test/support/pair_container.hpp b/libs/fusion/test/support/pair_container.hpp
new file mode 100644
index 000000000..3e84f0588
--- /dev/null
+++ b/libs/fusion/test/support/pair_container.hpp
@@ -0,0 +1,27 @@
+/*=============================================================================
+ Copyright (c) 2014 Kohei Takahashi
+
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
+ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+==============================================================================*/
+
+#include <boost/core/ignore_unused.hpp>
+#include <boost/fusion/support/pair.hpp>
+
+using namespace boost::fusion;
+
+template <typename C>
+void copy()
+{
+ pair<int, C> src;
+ pair<int, C> dest = src;
+ boost::ignore_unused(dest);
+}
+
+void test()
+{
+ copy<FUSION_SEQUENCE<> >();
+ copy<FUSION_SEQUENCE<TEST_TYPE> >();
+ copy<FUSION_SEQUENCE<TEST_TYPE, TEST_TYPE> >();
+}
+
diff --git a/libs/fusion/test/support/pair_deque.cpp b/libs/fusion/test/support/pair_deque.cpp
new file mode 100644
index 000000000..27da30ec4
--- /dev/null
+++ b/libs/fusion/test/support/pair_deque.cpp
@@ -0,0 +1,17 @@
+/*=============================================================================
+ Copyright (c) 2014 Kohei Takahashi
+
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
+ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+==============================================================================*/
+#include <boost/fusion/container/deque/deque.hpp>
+
+#define FUSION_SEQUENCE deque
+#define TEST_TYPE int
+#include "./pair_container.hpp"
+
+int main()
+{
+ test();
+}
+
diff --git a/libs/fusion/test/support/pair_list.cpp b/libs/fusion/test/support/pair_list.cpp
new file mode 100644
index 000000000..ce478ff68
--- /dev/null
+++ b/libs/fusion/test/support/pair_list.cpp
@@ -0,0 +1,17 @@
+/*=============================================================================
+ Copyright (c) 2014 Kohei Takahashi
+
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
+ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+==============================================================================*/
+#include <boost/fusion/container/list/list.hpp>
+
+#define FUSION_SEQUENCE list
+#define TEST_TYPE int
+#include "./pair_container.hpp"
+
+int main()
+{
+ test();
+}
+
diff --git a/libs/fusion/test/support/pair_map.cpp b/libs/fusion/test/support/pair_map.cpp
new file mode 100644
index 000000000..d472ba269
--- /dev/null
+++ b/libs/fusion/test/support/pair_map.cpp
@@ -0,0 +1,17 @@
+/*=============================================================================
+ Copyright (c) 2014 Kohei Takahashi
+
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
+ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+==============================================================================*/
+#include <boost/fusion/container/map/map.hpp>
+
+#define FUSION_SEQUENCE map
+#define TEST_TYPE pair<int,int>
+#include "./pair_container.hpp"
+
+int main()
+{
+ test();
+}
+
diff --git a/libs/fusion/test/support/pair_set.cpp b/libs/fusion/test/support/pair_set.cpp
new file mode 100644
index 000000000..b346a8ba5
--- /dev/null
+++ b/libs/fusion/test/support/pair_set.cpp
@@ -0,0 +1,17 @@
+/*=============================================================================
+ Copyright (c) 2014 Kohei Takahashi
+
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
+ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+==============================================================================*/
+#include <boost/fusion/container/set/set.hpp>
+
+#define FUSION_SEQUENCE set
+#define TEST_TYPE int
+#include "./pair_container.hpp"
+
+int main()
+{
+ test();
+}
+
diff --git a/libs/fusion/test/support/pair_vector.cpp b/libs/fusion/test/support/pair_vector.cpp
new file mode 100644
index 000000000..62a4f2b55
--- /dev/null
+++ b/libs/fusion/test/support/pair_vector.cpp
@@ -0,0 +1,17 @@
+/*=============================================================================
+ Copyright (c) 2014 Kohei Takahashi
+
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
+ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+==============================================================================*/
+#include <boost/fusion/container/vector/vector.hpp>
+
+#define FUSION_SEQUENCE vector
+#define TEST_TYPE int
+#include "./pair_container.hpp"
+
+int main()
+{
+ test();
+}
+