Create scoped_cptr to replace scoped_ptr_sfree
authorRoland Schulz <roland@utk.edu>
Fri, 17 Oct 2014 06:29:15 +0000 (02:29 -0400)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Mon, 20 Oct 2014 15:29:25 +0000 (17:29 +0200)
commitf8dc647a0f66d5e20a23670f57c6e0faabd81531
tree773a5adf6f6546b7da5c87a7f14ed58aeb2ad3e3
parent9d0e94a3fab0709b73d107b8504d60f18cc854c6
Create scoped_cptr to replace scoped_ptr_sfree

Compareed to the previous scoped_ptr_sfree, scoped_cptr has a get
method, a bool-conversion, and allows to specify a custom deleter.

If just a guard is required then the scoped_guard_sfree typedef
can be used which doesn't require to specify a type.

Change-Id: I81cb50c4cf34e2d5a93e9c4b0043afcbc5feb535
cmake/gmxTestCXX11.cmake
src/gromacs/selection/parser.cpp
src/gromacs/selection/parser.y
src/gromacs/trajectoryanalysis/modules/sasa.cpp
src/gromacs/trajectoryanalysis/modules/select.cpp
src/gromacs/utility/scoped_cptr.h [moved from src/gromacs/utility/scoped_ptr_sfree.h with 70% similarity]