-/* Copyright (c) 2015-2020. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2015-2021. 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. */
return data()[i];
}
// Conversion
- static string_data& to_string_data(string& s) { return s.str; }
+ static const string_data& to_string_data(const string& s) { return s.str; }
operator std::string() const { return std::string(this->c_str(), this->size()); }
// Iterators