Fixes for open-source build following upstream bug fix

extra-data
josh macdonald 2013-02-05 22:12:13 -08:00
parent c790956d18
commit f85129d4d7
1 changed files with 10 additions and 7 deletions

View File

@ -245,14 +245,17 @@ TEST(Btree, Comparison) {
}
TEST(Btree, RangeCtorSanity) {
typedef btree_set<int, less<int>, allocator<int>, 256> test_set;
typedef btree_map<int, int, less<int>, allocator<int>, 256> test_map;
typedef btree_multiset<int, less<int>, allocator<int>, 256> test_mset;
typedef btree_multimap<int, int, less<int>, allocator<int>, 256> test_mmap;
vector<int> ivec;
typedef btree_set<int, std::less<int>, std::allocator<int>, 256> test_set;
typedef btree_map<int, int, std::less<int>, std::allocator<int>, 256>
test_map;
typedef btree_multiset<int, std::less<int>, std::allocator<int>, 256>
test_mset;
typedef btree_multimap<int, int, std::less<int>, std::allocator<int>, 256>
test_mmap;
std::vector<int> ivec;
ivec.push_back(1);
map<int, int> imap;
imap.insert(make_pair(1, 2));
std::map<int, int> imap;
imap.insert(std::make_pair(1, 2));
test_mset tmset(ivec.begin(), ivec.end());
test_mmap tmmap(imap.begin(), imap.end());
test_set tset(ivec.begin(), ivec.end());