allocator_mismatch.fail.cpp (588B)
1 //===----------------------------------------------------------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is dual licensed under the MIT and the University of Illinois Open 6 // Source Licenses. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 // <unordered_set> 11 // The container's value type must be the same as the allocator's value type 12 13 #include <unordered_set> 14 15 int main() 16 { 17 std::unordered_multiset<int, std::hash<int>, std::less<int>, std::allocator<long> > v; 18 }