Trouble with template parameter matching

Fusxfaranto via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Aug 2 01:15:22 PDT 2015


On Sunday, 2 August 2015 at 08:08:05 UTC, tcak wrote:
> [code]
> void func1(N)( const N name )
> 	if( is(N: string) || is(N: char[]) )
> {
> 	func2( name );
> }
>
> [...]

This seems like the reasonable behavior to me.  Perhaps you 
should use Unqual?
http://dlang.org/phobos/std_traits.html#Unqual



More information about the Digitalmars-d-learn mailing list