Apparently you must say that TElem is a template, even though that can all be figured out from the declarations.

Fixes compilation with GCC 4.9
Merge pull request #18 from cmaloney/gcc-4.9-compat

Apparently you must say that TElem is a template, even though that can all be figured out from the declarations