[libcxx] [test] Avoid unary_function.
authorStephan T. Lavavej <stl@exchange.microsoft.com>
Thu, 12 Apr 2018 23:56:10 +0000 (23:56 +0000)
committerStephan T. Lavavej <stl@exchange.microsoft.com>
Thu, 12 Apr 2018 23:56:10 +0000 (23:56 +0000)
commit3ed719bb63e3363db638a35425c0540337a0f831
tree6b0296a5dc7af25b8a115cadc34cfabaa00d0039
parent0f66190aefa0c53648d549738a2bb312a309c2d9
[libcxx] [test] Avoid unary_function.

Replace unary_function inheritance (which was never required,
even in C++98) with argument_type and result_type typedefs.
This increases portability, as unary_function was removed in C++17
and MSVC has implemented that removal.

Fixes D45596.

llvm-svn: 329974
libcxx/test/support/Counter.h