Note that you have to qualify the call of getloc() by this-> now because the base class depends
on a template parameter. Also, we have to narrow the character before we pass it to putchar()
because putchar() only accepts char only (see Section 16.4.4, page 891).