- Timestamp:
- Jan 21, 2021, 8:44:38 AM (2 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/0.18-stable merged: 4020,4028-4030
- Property svn:mergeinfo changed
-
trunk/NEWS
r4019 r4032 9 9 10 10 yat 0.18.x series from http://dev.thep.lu.se/yat/svn/branches/0.18-stable 11 12 version 0.18.1 (released 21 January 2021) 13 - SegmentTree::key_comp() and ::value_comp() now compile (bug #970). 14 15 A complete list of closed tickets can be found here [[br]] 16 http://dev.thep.lu.se/yat/query?status=closed&milestone=yat+0.18.1 11 17 12 18 version 0.18 (released 6 November 2020) … … 558 564 Copyright (C) 2010, 2011 Peter Johansson 559 565 Copyright (C) 2012 Jari Häkkinen, Peter Johansson 560 Copyright (C) 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Peter Johansson566 Copyright (C) 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Peter Johansson 561 567 562 568 This file is part of yat library, http://dev.thep.lu.se/yat -
trunk/m4/version.m4
r4019 r4032 2 2 # 3 3 # Copyright (C) 2008, 2009 Jari Häkkinen, Peter Johansson 4 # Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2017, 2018, 2019, 2020 Peter Johansson4 # Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2017, 2018, 2019, 2020, 2021 Peter Johansson 5 5 # 6 6 # This file is part of the yat library, http://dev.thep.lu.se/yat … … 96 96 # yat-0.17.2 14:2:0 97 97 # yat-0.18 15:0:0 98 # yat-0.18.1 15:1:0 98 99 # 99 100 # *Accidently, the libtool number was not updated for yat 0.5 -
trunk/test/segment.cc
r4027 r4032 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 … … 30 30 using namespace theplu::yat; 31 31 using namespace utility; 32 void test_comp(test::Suite& suite); 32 33 void test_compare(test::Suite& suite); 33 34 void test_count(test::Suite&); … … 52 53 test::Suite suite(argc, argv); 53 54 55 test_comp(suite); 54 56 test_compare(suite); 55 57 test_count(suite); … … 68 70 69 71 return suite.return_value(); 72 } 73 74 75 void test_comp(test::Suite& suite) 76 { 77 Segment<double> key; 78 { 79 SegmentSet<double> set; 80 SegmentSet<double>::key_compare kcompare = set.key_comp(); 81 if (kcompare(key, key)) 82 suite.add(false); 83 test::avoid_compiler_warning(kcompare); 84 SegmentSet<double>::value_compare vcompare = set.value_comp(); 85 if (vcompare(key, key)) 86 suite.add(false); 87 test::avoid_compiler_warning(vcompare); 88 } 89 90 { 91 SegmentMap<double, std::string> map; 92 std::pair<const Segment<double>, std::string> value(key, "hello"); 93 SegmentMap<double, std::string>::key_compare kcompare = map.key_comp(); 94 if (kcompare(key, key)) 95 suite.add(false); 96 test::avoid_compiler_warning(kcompare); 97 SegmentMap<double, std::string>::value_compare vcompare = map.value_comp(); 98 if (vcompare(value, value)) 99 suite.add(false); 100 test::avoid_compiler_warning(vcompare); 101 } 70 102 } 71 103 -
trunk/yat/utility/SegmentTree.h
r4024 r4032 192 192 key_compare key_comp(void) const 193 193 { 194 return key_compare(compare);194 return container_.key_comp(); 195 195 } 196 196 … … 234 234 \c values 235 235 */ 236 value_compare value_comp(void) const { return key_comp(); }236 value_compare value_comp(void) const { return container_.value_comp(); } 237 237 238 238 protected:
Note: See TracChangeset
for help on using the changeset viewer.