Ignore:
Timestamp:
Jan 18, 2021, 1:46:27 PM (9 months ago)
Author:
Peter
Message:

fixes #970

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.18-stable/test/segment.cc

    r3661 r4028  
    3030using namespace theplu::yat;
    3131using namespace utility;
     32void test_comp(test::Suite& suite);
    3233void test_compare(test::Suite& suite);
    3334void test_count(test::Suite&);
     
    5152  test::Suite suite(argc, argv);
    5253
     54  test_comp(suite);
    5355  test_compare(suite);
    5456  test_count(suite);
     
    6668
    6769  return suite.return_value();
     70}
     71
     72
     73void test_comp(test::Suite& suite)
     74{
     75  {
     76    SegmentSet<double> set;
     77    SegmentSet<double>::key_compare kcompare = set.key_comp();
     78    test::avoid_compiler_warning(kcompare);
     79    SegmentSet<double>::value_compare vcompare = set.value_comp();
     80    test::avoid_compiler_warning(vcompare);
     81  }
     82
     83  {
     84    SegmentMap<double, std::string> map;
     85    SegmentMap<double, std::string>::key_compare kcompare = map.key_comp();
     86    test::avoid_compiler_warning(kcompare);
     87    SegmentMap<double, std::string>::value_compare vcompare = map.value_comp();
     88    test::avoid_compiler_warning(vcompare);
     89  }
    6890}
    6991
Note: See TracChangeset for help on using the changeset viewer.