Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines for 2022.
[simgrid.git] / src / kernel / resource / profile / DatedValue.cpp
index b104af7..044eb98 100644 (file)
@@ -1,10 +1,10 @@
-/* Copyright (c) 2004-2019. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2004-2022. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-//#include "src/kernel/resource/profile/DatedValue.hpp"
-#include <math.h>
+#include "src/kernel/resource/profile/DatedValue.hpp"
+#include <cmath>
 
 namespace simgrid {
 namespace kernel {
@@ -14,12 +14,7 @@ bool DatedValue::operator==(DatedValue const& e2) const
 {
   return (fabs(date_ - e2.date_) < 0.0001) && (fabs(value_ - e2.value_) < 0.0001);
 }
-std::ostream& operator<<(std::ostream& out, const DatedValue& e)
-{
-  out << e.date_ << " " << e.value_;
-  return out;
-}
 
 } // namespace profile
 } // namespace kernel
-} // namespace simgrid
\ No newline at end of file
+} // namespace simgrid