struct Foo { void Func() { } }; template <size_t N> struct Bar { }; int main(int, char*[]) { size_t s = sizeof(&Foo::Func); // OK Bar<sizeof(&Foo::Func)> bar; // C2070, WTF? }