Concepts? Template specialization depending on class functions?
Sean Kelly
sean at f4.ca
Thu Mar 2 14:20:28 PST 2006
Sean Kelly wrote:
>
> // default implementation
> template conceptFn( T )
> {
> static assert( is(testFeatures!(T) == DoesNiftyThingB );
> void conceptFn() {}
> }
paste error, the above should not contain an assert. Also, my C++ style
example even used "static if" in the "new" way. A true representation
would actually be slightly longer/more complex.
Sean
More information about the Digitalmars-d
mailing list