Changeset 4029 for branches/0.18-stable
- Timestamp:
- Jan 19, 2021, 4:15:46 AM (2 years ago)
- Location:
- branches/0.18-stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.18-stable/NEWS
r4028 r4029 559 559 Copyright (C) 2010, 2011 Peter Johansson 560 560 Copyright (C) 2012 Jari Häkkinen, Peter Johansson 561 Copyright (C) 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Peter Johansson561 Copyright (C) 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Peter Johansson 562 562 563 563 This file is part of yat library, http://dev.thep.lu.se/yat -
branches/0.18-stable/test/segment.cc
r4028 r4029 2 2 3 3 /* 4 Copyright (C) 2010, 2011, 2012, 2014, 2015, 2016, 2017 Peter Johansson4 Copyright (C) 2010, 2011, 2012, 2014, 2015, 2016, 2017, 2021 Peter Johansson 5 5 6 6 This file is part of the yat library, http://dev.thep.lu.se/yat … … 73 73 void test_comp(test::Suite& suite) 74 74 { 75 Segment<double> key; 75 76 { 76 77 SegmentSet<double> set; 77 78 SegmentSet<double>::key_compare kcompare = set.key_comp(); 79 if (kcompare(key, key)) 80 suite.add(false); 78 81 test::avoid_compiler_warning(kcompare); 79 82 SegmentSet<double>::value_compare vcompare = set.value_comp(); 83 if (vcompare(key, key)) 84 suite.add(false); 80 85 test::avoid_compiler_warning(vcompare); 81 86 } … … 83 88 { 84 89 SegmentMap<double, std::string> map; 90 std::pair<const Segment<double>, std::string> value(key, "hello"); 85 91 SegmentMap<double, std::string>::key_compare kcompare = map.key_comp(); 92 if (kcompare(key, key)) 93 suite.add(false); 86 94 test::avoid_compiler_warning(kcompare); 87 95 SegmentMap<double, std::string>::value_compare vcompare = map.value_comp(); 96 if (vcompare(value, value)) 97 suite.add(false); 88 98 test::avoid_compiler_warning(vcompare); 89 99 } -
branches/0.18-stable/yat/utility/SegmentTree.h
r4028 r4029 5 5 6 6 /* 7 Copyright (C) 2010, 2011, 2012, 2013 Peter Johansson7 Copyright (C) 2010, 2011, 2012, 2013, 2021 Peter Johansson 8 8 9 9 This file is part of the yat library, http://dev.thep.lu.se/yat
Note: See TracChangeset
for help on using the changeset viewer.