|
Boost Users : |
Subject: [Boost-users] [serialization] std::shared_ptr with Boost >= 1.53
From: Rüdiger Berlich (r.berlich_at_[hidden])
Date: 2015-04-30 16:36:30
Hi there,
I need to support various versions of Boost, but am in the process of porting our entire code base to C++11. This involves replacing those constructs of Boost that are now in the standard with their C++11-counterparts.
A prime example is std::shared_ptr. However, most of our code needs to be serializable. I know that serialization of std::shared_ptr is possible with Boost 1.58. But 1.53 (the oldest version I need to support) cannot serialize std::shared_ptr .
Is there any reason not to include the 1.58-Version of
#include <boost/serialization/shared_ptr.hpp>
instead of the older version, if I detect a Boost-version < 1.58 ?
Thanks and Best Regards,
Beet
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net