mxcl/homebrew — pull request #16044 by OldCrow (2012-11-14 01:11:22+00:00)
Title: C++11 Support for Boost and Boost 1.51

Add c++11 support to boost, and a version for boost 1.51 (upstream of 1.52 is broken under c++11)

The commit consists of two formula files. Understood that normally it should be one formula = one commit, but there is a method to the madness. boost.rb adds c++11 support as simply as possible by including a 'with-c++11' option which will append the appropriate toolset, cxxflags and link flags for the c++11 std and libc++. The formula also changes the call to ./bjam with a call to ./b2, which is the preferred name for boost-build.

Unfortunately, an upstream bug in boost 1.52 makes it impossible to build boost 1.52 using c++11; multiple constexpr errors result which cause the build to fail. Therefore, an equivalent formula for boost 1.51 is also provided as boost151.rb. This formula will correctly build boost 1.51 using c++11 and libc++ and therefore provides a libc++ compliant version of boost for those who require it. Eventually, when the constexpr bug is fixed upstream, boost151.rb could be deprecated and removed.