X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c8f375f14b9e04a4dd1767cb70c70b6dfc173f9c..7749be177cbd7d433ec389a155efff301969c6ee:/examples/s4u/io-file-system/s4u-io-file-system.cpp diff --git a/examples/s4u/io-file-system/s4u-io-file-system.cpp b/examples/s4u/io-file-system/s4u-io-file-system.cpp index 6a74e1b282..fe5ad8dd0f 100644 --- a/examples/s4u/io-file-system/s4u-io-file-system.cpp +++ b/examples/s4u/io-file-system/s4u-io-file-system.cpp @@ -57,7 +57,7 @@ public: // Test attaching some user data to the file file->set_data(new std::string("777")); - std::string* file_data = static_cast(file->get_data()); + const std::string* file_data = static_cast(file->get_data()); XBT_INFO("User data attached to the file: %s", file_data->c_str()); delete file_data;