C++ wrapper around XDR.
Allow encoding of const values.