For some unknown reason I needed to remove operator= calls in this function or it wouldn't link, when using JsonCpp-0yz and VS2015 64 bit. It's effectively equivalent (pass an arg by value instead of passing by const ref then assigning to a new object, and a swap instead of an assign), and importantly, it builds.
For some unknown reason I needed to remove
operator=
calls in this function or it wouldn't link, when using JsonCpp-0yz and VS2015 64 bit. It's effectively equivalent (pass an arg by value instead of passing by const ref then assigning to a new object, and a swap instead of an assign), and importantly, it builds.