Skip to content
Snippets Groups Projects
Commit 85c1a04e authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Mesh writers: avoid reference in class members, initialize by rdbuf

Using references as class members is weird, because they cannot extend
the lifetime of the objects they are initialized with. Using values of
the type std::ostream and initializing by rdbuf (which is a pointer)
works better, probably because the underlying rdbuf generally outlives
the ostreams that were being passed to the writers.
parent b8fa05a2
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment