homebrew/Library/Homebrew/cxxstdlib.rb
# If either package doesn't use C++, all is well.
# libstdc++ and libc++ aren't ever intercompatible.
# libstdc++ is compatible across Apple compilers, but
# not between Apple and GNU compilers, nor between GNU compiler versions.
If either package doesn't use C++, all is well.
libstdc++ and libc++ aren't ever intercompatible.
libstdc++ is compatible across Apple compilers, but
not between Apple and GNU compilers, nor between GNU compiler versions.
If either package doesn ' t use C ++ all is well . libstdc ++ and libc ++ aren ' t ever intercompatible . libstdc ++ is compatible across Apple compilers but not between Apple and GNU compilers nor between GNU compiler versions .
def compatible_with?(other)
    return true if type.nil? || other.type.nil?
    return false unless type == other.type
    apple_compiler? && other.apple_compiler? ||
      !other.apple_compiler? && compiler.to_s[4..6] == other.compiler.to_s[4..6]
  end
def compatible_with? ( other ) return true if type . nil? || other . type . nil? return false unless type == other . type apple_compiler? && other . apple_compiler? || ! other . apple_compiler? && compiler . to_s [ 4 .. 6 ] == other . compiler . to_s [ 4 .. 6 ] end
If either package doesn't use C++, all is well.
If either package doesn ' t use C ++ all is well .
other