• Kenton Varda's avatar
    WIP use bounded types -- all tests passing. · 093fac4a
    Kenton Varda authored
    TODO:
    - Rename Guarded to Bounded?
    - Consider bounded array (where size and indexes are bounded quantities).
    - Implement non-CAPNP_DEBUG_TYPES fallback.
      - Don't allow casting kj::maxValue to bounded type, this won't work right when not using debug types!
    - Verify that this change doesn't hurt performance.
    093fac4a
common.h 19.7 KB