Hi Chandler,
I scanned the LLVM source code, and found some potential code issues, take the piece of code in file ‘./include/llvm/Support/Allocator.h’ for example:
Hi Chandler,
I scanned the LLVM source code, and found some potential code issues, take the piece of code in file ‘./include/llvm/Support/Allocator.h’ for example:
I think this is the intended use of enable_if, no?
http://en.cppreference.com/w/cpp/types/enable_if
“This metafunction is a convenient way to leverage SFINAE to conditionally remove functions from overload resolution based on type traits and to provide separate function overloads and specializations for different type traits”
– Sean Silva