Skip to content
Commit d82d4cc3 authored by Chandler Carruth's avatar Chandler Carruth
Browse files

[Allocator] Constrain the Deallocate templated overloads to only apply

to types which we can compute the size of. The comparison with zero
isn't actually interesting here, it's mostly about putting sizeof into
a sfinae context.

This is particular important for Deallocate as otherwise the void*
overload can quickly become ambiguous.

llvm-svn: 206251
parent 7620b315
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment