← Back to team overview

dolfin team mailing list archive

Re: [HG DOLFIN] Use boost::assign::list_of in demo/bcs/cpp/main.cpp. It's neat.

 



Anders Logg wrote:
On Fri, May 22, 2009 at 07:40:29PM +0200, DOLFIN wrote:
One or more new changesets pushed to the primary dolfin repository.
A short summary of the last three changesets is included below.

changeset:   6215:88cd261848a7668eac4e1925fb34a28a68ef4bee
tag:         tip
user:        "Garth N. Wells <gnw20@xxxxxxxxx>"
date:        Fri May 22 18:39:43 2009 +0100
files:       demo/pde/bcs/cpp/main.cpp
description:
Use boost::assign::list_of in demo/bcs/cpp/main.cpp. It's neat.

Is it worth putting a typedef in namespace dolfin for list_of?


Sure, or add 'using namespace boost::assign'. Where's the best place?

list_of is nice because it provides the functionality (and more) that we used to have with dolfin::Array.

Garth



------------------------------------------------------------------------

_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev




References