Boost logo

Boost Users :

Subject: Re: [Boost-users] Help with shared_ptr and template
From: Andrew Sutton (andrew.n.sutton_at_[hidden])
Date: 2009-01-28 08:01:58


Template template parameters?

template<typename T, template <typename> class Value>
struct Type{
    typedef boost::shared_ptr< Value<T> > pValue;
};

int main(int argc, char *argv[])
{
    Type<bool, CValue>::pValue a;

  return EXIT_SUCCESS;
}

Andrew Sutton
andrew.n.sutton_at_[hidden]



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