C++: Make proxies safer
authorPetri Lehtinen <petri@digip.org>
Sun, 7 Feb 2010 12:08:54 +0000 (14:08 +0200)
committerPetri Lehtinen <petri@digip.org>
Sun, 7 Feb 2010 12:08:54 +0000 (14:08 +0200)
commitacec2559a5da3390dcf2728eb37e69ecedf33267
tree524374181271654082fd960809f114050c8860c3
parent8d75235ff22dc4aced697e198c3c024f1f4b88fe
C++: Make proxies safer

If a user happens to store an ElementProxy or a PropertyProxy
instance, we need to take a reference to the JSON value they point to.
With PropertyProxy, the key needs to be copied as well.
src/jansson.hpp
src/jansson.ipp