$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: David Abrahams (dave_at_[hidden])
Date: 2007-03-23 23:58:28
on Fri Mar 23 2007, David Abrahams <dave-AT-boost-consulting.com> wrote:
>>From scratch (untested):
And now, just by inspection...
> template <class Seq, class E>
> struct erase_first
> {
> typedef typename mpl::find<Seq, T>::type i;
> typedef typename eval_if<
> boost::is_same<i, typename mpl::end<Seq> >
^::type
> , mpl::identity<Seq>
> , mpl::erase<Seq,i>
> >::type type;
> };
>
> HTH,
HTH-ly y'rs,
-- Dave Abrahams Boost Consulting www.boost-consulting.com