//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // template , // class Allocator = allocator>> // class map // http://llvm.org/bugs/show_bug.cgi?id=16538 // http://llvm.org/bugs/show_bug.cgi?id=16549 #include struct Key { template Key(const T&) {} bool operator< (const Key&) const { return false; } }; int main() { std::map::iterator it = std::map().find(Key(0)); std::pair::iterator, bool> result = std::map().insert(std::make_pair(Key(0), 0)); }