boost: use c++11 compilers in c++11 mode

Fixes Homebrew/homebrew#40319.

Closes Homebrew/homebrew#40327.

Signed-off-by: Tim D. Smith <git@tim-smith.us>
This commit is contained in:
Tim D. Smith 2015-06-02 14:52:06 -07:00
parent b62503e227
commit f8fac7599f

View file

@ -36,6 +36,8 @@ class Boost < Formula
cause "Dropped arguments to functions when linking with boost"
end
needs :cxx11 if build.cxx11?
def install
# https://svn.boost.org/trac/boost/ticket/8841
if build.with?("mpi") && build.with?("single")