Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2005-10-27 10:08:47


<Oliver.Kowalke_at_[hidden]> writes:

> Hello,
> is it possible to store templates instead of complete types in
> boost::mpl::vector?

Just store placeholder expressions.

  mpl::vector<template1<_,_>, template2<_,_> >

To instantiate those templates, you just

  mpl::apply< placeholder_expression, arg1, arg2 >::type

I can't easily tell what you're after below, so I don't have a more complete
example for you.

<snip your code>

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net