enforce

Thin wrapper for enforceImpl that deduces file/line as template arguments to avoid ambiguity between overloads.

  1. void enforce(T ok, istring msg)
  2. void enforce(E e, T ok, istring msg)
    void
    enforce
    (
    T
    E : Exception
    istring file = __FILE__
    int line = __LINE__
    )
    (
    lazy E e
    ,
    T ok
    ,
    lazy istring msg = ""
    )
  3. void enforce(T1 a, T2 b)
  4. void enforce(E e, T1 a, T2 b)

Meta