mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix MSVC ADL
This commit is contained in:
@@ -37,10 +37,7 @@
|
||||
#include <utility>
|
||||
#include <type_traits>
|
||||
|
||||
namespace std
|
||||
{
|
||||
|
||||
/// Operator overloads for STL containers should be in std namespace for ADL to work properly.
|
||||
/// Operators need to stay in the global namespace.
|
||||
|
||||
/// Concatenate the contents of a container onto a vector
|
||||
template <class T, class U> std::vector<T>& operator+=(std::vector<T>& _a, U& _b)
|
||||
@@ -147,8 +144,6 @@ inline std::multiset<T...>& operator-=(std::multiset<T...>& _a, C const& _b)
|
||||
return _a;
|
||||
}
|
||||
|
||||
} // end namespace std
|
||||
|
||||
namespace solidity::util
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user