|
Boost : |
Subject: [boost] Algorithm : Error in find_iterator.hpp
From: GAURAV GUPTA (ya1gaurav_at_[hidden])
Date: 2012-11-28 06:21:02
Hello,
I have encountered some errors in Boost, while running some static analyzer
tool.
It is reported in boost/algorithm/string/find_iterator.hpp
The error is:
*boost::date_time::time_duration has user-written copy constructor but no
corresponding user-written assignment operator.*
*Is it valid to apply the following patch.*
diff -Naur a/boost/algorithm/string/find_iterator.hpp
b/boost/algorithm/string/find_iterator.hpp
--- a/boost/algorithm/string/find_iterator.hpp 2011-01-11
01:06:38.000000000 +0530
+++ b/boost/algorithm/string/find_iterator.hpp 2012-11-26
18:19:39.000000000 +0530
@@ -119,6 +119,9 @@
increment();
}
+ private:
+ find_iterator & operator=( const find_iterator& Other );
+
private:
// iterator operations
@@ -288,6 +291,8 @@
increment();
}
}
+ private:
+ split_iterator & operator=( const split_iterator& Other );
private:
-- Regards, Gaurav
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk