was able to use templates. but the inline made it not compile. don't quite understand why though... is there something to pay special attention to when declaring functions as inline? (i.e. wrt. to defintion/declaration ordering, etc...)