]> https://gitweb.dealii.org/ - dealii.git/commit
Tests: base/reference.cc - avoid "use after scope"
authorMatthias Maier <tamiko@43-1.org>
Tue, 9 Oct 2018 20:16:44 +0000 (15:16 -0500)
committerMatthias Maier <tamiko@43-1.org>
Tue, 9 Oct 2018 20:16:44 +0000 (15:16 -0500)
commit475b4f2d2ce12f6d2e42c42474296c62ee14af93
treee454e6e3411ce6f013bfe1639bf17ff8d77196e0
parent5d251817e4b23eadd4fe6f619a6503d1ceb41245
Tests: base/reference.cc - avoid "use after scope"

gcc might be a bit forgiving with our use after scope here,
unfortunately, clang isn't. Let's simply work around this issue by
creating using a sentinel that simply resets the SmartPointer when going
out of scope
tests/base/reference.cc

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.