fixes ticket #10443. invoke is now sfinae friendly.