IsReferenceType!() isn't fully correct because it sees fixed size arrays as reference types. I have posted a more correct (and cleaned, and single-template) version here: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=75813 Bye, bearophile