Boost logo

Boost :

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

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
   nonconstructible() {}

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


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