This patch adds const to a few places, to make std::deque<const T> work as before D132092.
It makes compilation backward compatible.
Deque does not support const objects (objects have to be movable), so correct C++ code works with and without this patch, but there is no point in changing the behavior for incorrect code in D132092.