Mercurial > fem-fenics-eugenio
diff src/SubSpace.cc @ 253:5e9b5bbdc56b
Support both DOLFIN 1.3.0 and 1.4.0
* src/dolfin_compat.h: use a macro to set the correct shared_ptr (std or boost)
author | Eugenio Gianniti <eugenio.gianniti@mail.polimi.it> |
---|---|
date | Tue, 29 Jul 2014 18:05:56 +0200 |
parents | 66071811eef8 |
children |
line wrap: on
line diff
--- a/src/SubSpace.cc Tue Jul 29 17:11:59 2014 +0200 +++ b/src/SubSpace.cc Tue Jul 29 18:05:56 2014 +0200 @@ -15,6 +15,7 @@ this program; if not, see <http://www.gnu.org/licenses/>. */ #include "functionspace.h" +#include "dolfin_compat.h" DEFUN_DLD (SubSpace, args, , "-*- texinfo -*-\n\ @deftypefn {Function File} {[@var{V1}]} = \ @@ -59,7 +60,7 @@ else { - boost::shared_ptr <const dolfin::FunctionSpace> + SHARED_PTR <const dolfin::FunctionSpace> g (new dolfin::SubSpace (V, idx - 1)); retval = new functionspace (g);