// License: Modified MIT (NON-AI) // See the LICENSE file in the root directory for license information. // Copyright 2025 Timothy Prepscius #pragma once namespace tjp::core::io { template struct OptionalIO { T &v; bool write; } ; template OptionalIO optional(T &t, bool write=true) { return OptionalIO { t, write }; } template void io_(IO &io, OptionalIO &t) { static_assert(always_false::value, "this should not be dispatched to"); } } // namespace