Mercurial > fem-fenics-eugenio
diff src/coefficient.h @ 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 | 9e944b0d0fc8 |
children |
line wrap: on
line diff
--- a/src/coefficient.h Tue Jul 29 17:11:59 2014 +0200 +++ b/src/coefficient.h Tue Jul 29 18:05:56 2014 +0200 @@ -19,6 +19,7 @@ #define _COEFFICIENT_OCTAVE_ #include "expression.h" +#include "dolfin_compat.h" class coefficient : public octave_base_value { @@ -48,7 +49,7 @@ is_defined (void) const { return true; } - const boost::shared_ptr <const expression> & + const SHARED_PTR <const expression> & get_expr (void) const { return expr; } @@ -59,7 +60,7 @@ private: std::string str; - boost::shared_ptr <const expression> expr; + SHARED_PTR <const expression> expr; DECLARE_OCTAVE_ALLOCATOR; DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA;