Fix MSVC ADL

This commit is contained in:
a3d4
2020-09-01 00:42:42 +02:00
parent ce90204562
commit 8faa5243b5
3 changed files with 8 additions and 9 deletions
+1 -6
View File
@@ -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
{