summaryrefslogtreecommitdiff
path: root/libs/container/test/explicit_inst_list_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/container/test/explicit_inst_list_test.cpp')
-rw-r--r--libs/container/test/explicit_inst_list_test.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/libs/container/test/explicit_inst_list_test.cpp b/libs/container/test/explicit_inst_list_test.cpp
new file mode 100644
index 000000000..b038594e7
--- /dev/null
+++ b/libs/container/test/explicit_inst_list_test.cpp
@@ -0,0 +1,26 @@
+//////////////////////////////////////////////////////////////////////////////
+//
+// (C) Copyright Ion Gaztanaga 2015-2015. 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)
+//
+// See http://www.boost.org/libs/container for documentation.
+//
+//////////////////////////////////////////////////////////////////////////////
+
+#include <boost/container/list.hpp>
+
+struct empty
+{
+ friend bool operator == (const empty &, const empty &){ return true; }
+ friend bool operator < (const empty &, const empty &){ return true; }
+};
+
+template class ::boost::container::list<empty>;
+
+int main()
+{
+ ::boost::container::list<empty> dummy;
+ (void)dummy;
+ return 0;
+}