Skip to content
Snippets Groups Projects
Commit 77a6b0ff authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[IO] Use erase last algo operating on copy.

This allows for a const variable.
parent 1958d840
No related branches found
No related tags found
No related merge requests found
......@@ -73,8 +73,8 @@ MeshLib::NodePartitionedMesh* NodePartitionedMeshReader::read(
MeshLib::NodePartitionedMesh* mesh = nullptr;
/// Prefix of the filename of the partitioned mesh files.
std::string filename_prefix = file_name_base;
boost::erase_last(filename_prefix, ".vtk");
std::string const filename_prefix =
boost::erase_last_copy(file_name_base, ".vtk");
// Always try binary file first
std::string const fname_new = filename_prefix + "_partitioned_msh_cfg" +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment