$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r64468 - sandbox/variadic_templates/libs/mpl/test
From: cppljevans_at_[hidden]
Date: 2010-07-30 11:07:12
Author: cppljevans
Date: 2010-07-30 11:07:11 EDT (Fri, 30 Jul 2010)
New Revision: 64468
URL: http://svn.boost.org/trac/boost/changeset/64468
Log:
repeat.hpp test
Added:
sandbox/variadic_templates/libs/mpl/test/repeat.cpp (contents, props changed)
Added: sandbox/variadic_templates/libs/mpl/test/repeat.cpp
==============================================================================
--- (empty file)
+++ sandbox/variadic_templates/libs/mpl/test/repeat.cpp 2010-07-30 11:07:11 EDT (Fri, 30 Jul 2010)
@@ -0,0 +1,14 @@
+
+#include <boost/mpl/repeat.hpp>
+
+#include <boost/mpl/aux_/test.hpp>
+
+MPL_TEST_CASE()
+{
+ typedef repeat<int,0>::type int0;
+ MPL_ASSERT(( is_same< int0, package<> > ));
+ typedef repeat<int,1>::type int1;
+ MPL_ASSERT(( is_same< int1, package<int> > ));
+ typedef repeat<int,2>::type int2;
+ MPL_ASSERT(( is_same< int2, package<int,int> > ));
+}