[PATCH] [libc++] Const qualify __mem_fn call operator

Peter Collingbourne peter at pcc.me.uk
Fri Jan 3 13:31:02 PST 2014

  As far as I can tell, provided that the client does not use reserved names, __invoke is only ever called with a function argument of type pointer to member function from __mem_fn, as those are the only template argument types that __mem_fn is ever instantiated with by mem_fn,

  In each of the overloads dealing with those function argument types, the function pointer is not (nor may it be) modified.


More information about the cfe-commits mailing list