mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-31 03:47:16 +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_;
|
--size_;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<
|
template<typename Key>
|
||||||
typename Key,
|
auto erase(Key&& x) -> typename std::enable_if<
|
||||||
typename std::enable_if<
|
!boost::is_convertible<Key,iterator>::value&&
|
||||||
!std::is_convertible<Key&&,iterator>::value&&
|
!boost::is_convertible<Key,const_iterator>::value, std::size_t>::type
|
||||||
!std::is_convertible<Key&&,const_iterator>::value>::type* =nullptr
|
erase(Key&& x)
|
||||||
>
|
|
||||||
std::size_t erase(Key&& x)
|
|
||||||
{
|
{
|
||||||
auto it=find(x);
|
auto it=find(x);
|
||||||
if(it!=end()){
|
if(it!=end()){
|
||||||
|
Reference in New Issue
Block a user