I'm trying to figure out how to write a program that will, at run time, say if a class is default constructable, but won't cause compile-time failures if it isn't.
I've been trying to use templates, but I'm just not familiar enough with templates to get it to work. What I would like is something like: // Class c is default constructable IsDefaultConstructable<c>::value == 1; // Class d is not default constructable IsDefaultConstructable<d>::value == 0; Does anybody have any ideas?
-------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list
