------- Comment #7 from bangerth at gmail dot com 2009-01-30 15:51 ------- (In reply to comment #5) > Did I understand this wrong ? Does the correct interpretation of the standard > not allow for member-function-pointers as non-type arguments ?
It does, but it requires them to be in a constant-expression context -- i.e. informally speaking the compiler needs to know *at compile time* which member function you refer to. You can use a function argument as a template argument. I think this is indeed a duplicate of PR 37093. W. W. *** This bug has been marked as a duplicate of 37093 *** -- bangerth at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bangerth at gmail dot com Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38681