Exception: CxxStdlib::CompatibilityError

Inherits:
StandardError
  • Object
show all
Defined in:
Library/Homebrew/cxxstdlib.rb

Overview

Error for when a formula's dependency was built with a different C++ standard library.

Instance Method Summary collapse

Constructor Details

#initialize(formula, dep, stdlib) ⇒ CompatibilityError

Returns a new instance of CompatibilityError.


11
12
13
14
15
16
# File 'Library/Homebrew/cxxstdlib.rb', line 11

def initialize(formula, dep, stdlib)
  super <<~EOS
    #{formula.full_name} dependency #{dep.name} was built with a different C++ standard
    library (#{stdlib.type_string} from #{stdlib.compiler}). This may cause problems at runtime.
  EOS
end