Boost logo

Boost :

From: Chris Weed (chrisweed_at_[hidden])
Date: 2006-07-24 15:54:33


Hi,
I think it would be nice to have a "nonconstructible" class to derive
from similar to noncopyable.

Recently I was burned by a traits class that was getting constructed.
I think this should also be used for template metafunctions.

I envision something like the following:

struct nonconstructible
{
  private:
   nonconstructible() {}
}

template<typename T>
struct my_traits : nonconstructible
{
  typedef int my_type;
};

Chris


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk