I'm trying to pass an instance of DirichletBC into a vector of type BoundaryCondition*. Here's my code
std::vector<const BoundaryCondition*> bcs;
DirichletBC bcl(V0, c, left);
bcs.push_back(&bcl);
I'm getting the error
no matching function for call to
‘std::vector<const dolfin::BoundaryCondition*>::push_back(dolfin::DirichletBC*)’
As this is done in examples I've seen I'm confused as to why it isn't working. I'm using FEniCS 1.5.0.