mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 11:27:15 +02:00
Rearrange SFINAE to appease msvc-14.0 in erase() member function template
This commit is contained in:
@ -1097,13 +1097,11 @@ public:
|
||||
--size_;
|
||||
}
|
||||
|
||||
template<
|
||||
typename Key,
|
||||
typename std::enable_if<
|
||||
!std::is_convertible<Key&&,iterator>::value&&
|
||||
!std::is_convertible<Key&&,const_iterator>::value>::type* =nullptr
|
||||
>
|
||||
std::size_t erase(Key&& x)
|
||||
template<typename Key>
|
||||
auto erase(Key&& x) -> typename std::enable_if<
|
||||
!boost::is_convertible<Key,iterator>::value&&
|
||||
!boost::is_convertible<Key,const_iterator>::value, std::size_t>::type
|
||||
erase(Key&& x)
|
||||
{
|
||||
auto it=find(x);
|
||||
if(it!=end()){
|
||||
|
Reference in New Issue
Block a user