$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r81055 - sandbox/variadic_templates/sandbox/slim/test
From: cppljevans_at_[hidden]
Date: 2012-10-24 12:32:24
Author: cppljevans
Date: 2012-10-24 12:32:24 EDT (Wed, 24 Oct 2012)
New Revision: 81055
URL: http://svn.boost.org/trac/boost/changeset/81055
Log:
Add missing #include file
Added:
   sandbox/variadic_templates/sandbox/slim/test/make_indexes.hpp   (contents, props changed)
Added: sandbox/variadic_templates/sandbox/slim/test/make_indexes.hpp
==============================================================================
--- (empty file)
+++ sandbox/variadic_templates/sandbox/slim/test/make_indexes.hpp	2012-10-24 12:32:24 EDT (Wed, 24 Oct 2012)
@@ -0,0 +1,30 @@
+#ifndef MAKE_INDEXES_HPP_INCLUDED
+#define MAKE_INDEXES_HPP_INCLUDED
+  template<int Max,int... Indices>
+  struct make_indexes:
+  	make_indexes<Max-1,Max-1,Indices...>
+  /**@brief
+   *  Starting from:
+   *    max_indexes<5>
+   *  this produces:
+   *    max_indexes<5>
+   *      : max_indexes<4,4>
+   *        : max_indexes<3,3,4>
+   *          : max_indexes<2,2,3,4>
+   *            : max_indexes<1,1,2,3,4>
+   *              : max_indexes<0,0,1,2,3,4>
+   *                //using the specialization below
+   *              {
+   *                  typedef int_indexes<0,1,2,3,4> type;
+   *              };
+   */        
+  {};
+  template<int...>
+  struct int_indexes
+  {};
+  template<int... Indices>
+  struct make_indexes<0,Indices...>
+  {
+  	typedef int_indexes<Indices...> type;
+  };
+#endif