Remove some undefined behaviour from const Lazy.
Summary: operator()() const uses const_cast to forward its implementation to operator()(), which invokes UB when writing to the internal state. This change marks the internal state mutable, which means we can delete the const_cast. Reviewed By: yfeldblum Differential Revision: D7089568 fbshipit-source-id: 09f726e6399a95987075d6170ce6fb8103189552
Showing
Please register or sign in to comment