[Liblas-commits] hg: make liblas::Reader and liblas::Writer's pimpl
be backed by ...
liblas-commits at liblas.org
liblas-commits at liblas.org
Wed Dec 15 10:32:19 EST 2010
changeset 7d1df24f6b90 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=7d1df24f6b90
summary: make liblas::Reader and liblas::Writer's pimpl be backed by a shared_ptr for copyability rather than a std::auto_ptr
diffstat:
include/liblas/lasreader.hpp | 4 +++-
include/liblas/laswriter.hpp | 5 +++--
2 files changed, 6 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r bc334b3ab8bb -r 7d1df24f6b90 include/liblas/lasreader.hpp
--- a/include/liblas/lasreader.hpp Wed Dec 15 08:38:25 2010 -0600
+++ b/include/liblas/lasreader.hpp Wed Dec 15 09:32:11 2010 -0600
@@ -145,7 +145,9 @@
Reader& operator=(Reader const& rhs);
void Init(); // throws on error
- const std::auto_ptr<ReaderI> m_pimpl;
+
+ typedef boost::shared_ptr<ReaderI> ReaderIPtr;
+ const ReaderIPtr m_pimpl;
};
diff -r bc334b3ab8bb -r 7d1df24f6b90 include/liblas/laswriter.hpp
--- a/include/liblas/laswriter.hpp Wed Dec 15 08:38:25 2010 -0600
+++ b/include/liblas/laswriter.hpp Wed Dec 15 09:32:11 2010 -0600
@@ -105,8 +105,9 @@
// Blocked copying operations, declared but not defined.
Writer(Writer const& other);
Writer& operator=(Writer const& rhs);
-
- const std::auto_ptr<WriterI> m_pimpl;
+
+ typedef boost::shared_ptr<WriterI> WriterIPtr;
+ const WriterIPtr m_pimpl;
};
More information about the Liblas-commits
mailing list