C++ - Hash value of object graph similar to boost:

2019-07-26 17:38发布

问题:

I've just read this great article about boost::serialization and it seems to be very clever and easy to use.

I'm searching for a way to calculate the hash-value of an object graph in a similar/easy way.

Does anybody know how this can be achieved?

回答1:

I did exactly that once:

  • Hash an arbitrary precision value (boost::multiprecision::cpp_int)

Also required reading: Types Don't Know # with the talk on YT: https://www.youtube.com/watch?v=Njjp_MJsgt8