We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a0c1b3 commit bc0e18bCopy full SHA for bc0e18b
src/chart/generator/plotbuilder.cpp
@@ -93,12 +93,17 @@ Buckets PlotBuilder::generateMarkers(std::size_t &mainBucketSize)
93
plot->markers.reserve(dataCube.df->get_record_count());
94
}
95
96
- using CmpBySec = decltype(
97
- [] (const std::pair<const Options::MarkerInfoId, Marker::MarkerIndex>& lhs,
98
- const std::pair<const Options::MarkerInfoId, Marker::MarkerIndex>& rhs)
+ struct CmpBySec
+ {
+ [[nodiscard]] bool operator()(
99
+ const std::pair<const Options::MarkerInfoId,
100
+ Marker::MarkerIndex> &lhs,
101
102
+ Marker::MarkerIndex> &rhs) const
103
{
104
return lhs.second < rhs.second;
- });
105
+ }
106
+ };
107
108
auto &&set =
109
std::multiset<std::reference_wrapper<
0 commit comments