On Fri, Jan 4, 2013 at 9:51 AM, Kirk, Benjamin (JSC-EG311) <benjamin.kirk-1@nasa.gov> wrote:
On Jan 4, 2013, at 10:41 AM, Cody Permann <codypermann@gmail.com> wrote:

> Bottom line:  Do any of you have any experience with how widespread and reliable the standard regex library is on a wide range of compilers?  Would it be worth detecting the presence of this capability inside of libMesh?

I'm not sure how widely spread it is, but a really nice option is to have a "hierarchic fallback" implementation like what I've done looking for std::thread.

We look for that, fall back to tbb:thread, and then (could but don't currently) boost::thread?

IIRC std::regex is basically the same as boost::regex, in which case we could create a libMesh::regex which is nothing more than a preferential typedef.

Yes a very decent idea, however would we attempt to distribute boost::regex with libMesh?  I haven't looked at it yet, but fear that it might be one of those features in boost that requires 1 bajillion header files.  If it's only a few, then this would work nicely. :)

Cody
 

-Ben