cpp/error/error code/assign

Replaces the contents with error code and corresponding category.

Return value
(none)