------- Comment #4 from pinskia at gcc dot gnu dot org 2010-07-10 17:46 ------- The error message is not clear. The issue is that you are not using a constant expression for a template arugment. Template arguments are either constant expressions or types.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44906