Delete Document copy constructor.
authorCarl Hetherington <cth@carlh.net>
Sat, 23 Oct 2021 22:10:03 +0000 (00:10 +0200)
committerCarl Hetherington <cth@carlh.net>
Sat, 23 Oct 2021 22:10:03 +0000 (00:10 +0200)
src/cxml.h

index fbdd22fcb47befc097d6052d360352b51a7e57b8..d2cb5b6518ce347f0709e9731bc1e0a7c3f9582f 100644 (file)
@@ -247,6 +247,9 @@ public:
        Document (std::string root_name);
        Document (std::string root_name, boost::filesystem::path);
 
+       Document (Document const&) = delete;
+       Document& operator= (Document const&) = delete;
+
        virtual ~Document ();
 
        void read_file (boost::filesystem::path);