Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-06-27 18:45:29

From: "Greg Colvin" <greg_at_[hidden]>

> >I don't see the advantage over having raw_ptr be a function template
> >returns a T*. At least then the user doesn't have to explicitly specify
> >template argument.
> So you can write generic code like
> template<template<typename T> class Ptr> struct x { Ptr<T> p; };
> and have a Ptr with raw pointer semantics.

And the advantage of this over

    template<class Ptr> struct x { Ptr p; };



Boost list run by bdawes at, gregod at, cpdaniel at, john at