Replace a nested namespace used for overload resolution with a struct. Richard Smith says that using the namespace results in an ODR violation, but I disagree. Nevertheless, the struct works just as well.

llvm-svn: 302800
This commit is contained in:
Marshall Clow 2017-05-11 14:00:54 +00:00
parent afda4a9af9
commit 7e154cdca7
1 changed files with 2 additions and 2 deletions

View File

@ -996,11 +996,11 @@ struct __rebind_pointer {
// allocator_traits
namespace __has_pointer_type_imp
struct __has_pointer_type_imp
{
template <class _Up> static __two __test(...);
template <class _Up> static char __test(typename _Up::pointer* = 0);
}
};
template <class _Tp>
struct __has_pointer_type