Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Sonar wants a class.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 13 Nov 2017 14:16:38 +0000 (15:16 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 13 Nov 2017 14:16:38 +0000 (15:16 +0100)
src/surf/surf_interface.hpp

index 0644588..40f18b0 100644 (file)
@@ -76,7 +76,8 @@ namespace simgrid {
 namespace surf {
 
 typedef std::pair<double, simgrid::surf::Action*> heap_element_type;
-struct heap_element_compare {
+class heap_element_compare {
+public:
   bool operator()(const heap_element_type& a, const heap_element_type& b) const { return a.first > b.first; }
 };
 typedef boost::heap::pairing_heap<heap_element_type, boost::heap::constant_time_size<false>, boost::heap::stable<true>,