Skip to content

Commit

Permalink
Make xdr_to_string use xdr::archive
Browse files Browse the repository at this point in the history
  • Loading branch information
Hidenori Shinohara committed Feb 20, 2021
1 parent afd7e16 commit b048c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/XDRCereal.h
Expand Up @@ -124,7 +124,7 @@ xdr_to_string(const T& t, std::string const& name, bool compact = false)
cereal::JSONOutputArchive ar(
os, compact ? cereal::JSONOutputArchive::Options::NoIndent()
: cereal::JSONOutputArchive::Options::Default());
ar(cereal::make_nvp(name, t));
xdr::archive(ar, t, name.c_str());
}
return os.str();
}

0 comments on commit b048c86

Please sign in to comment.