Opened 8 years ago
Closed 8 years ago
#10724 closed Bugs (fixed)
UNINIT_CTOR
Reported by: | Owned by: | Joaquín M López Muñoz | |
---|---|---|---|
Milestone: | To Be Determined | Component: | multi_index |
Version: | Boost 1.54.0 | Severity: | Cosmetic |
Keywords: | Cc: |
Description
In default constructor for the class "hashed_index_iterator " the private members are not initialized hence it shows a code quality error UNINIT_CTOR() as defined below :-
template<typename Node,typename BucketArray>
class hashed_index_iterator: public forward_iterator_helper< hashed_index_iterator<Node,BucketArray>, typename Node::value_type, std::ptrdiff_t, const typename Node::value_type*, const typename Node::value_type&> { public:
uninit_member: Non-static class member "node" is not initialized in this constructor nor in any functions that it calls.
Uninitialized pointer field (UNINIT_CTOR)4. uninit_member: Non-static class member "buckets" is not initialized in this constructor nor in any functions that it calls.
hashed_index_iterator(){}
- * private: member_decl: Class member declaration for "node". Node* node;
member_decl: Class member declaration for "buckets". BucketArray* buckets;
* These Private member has to be initialized in default constructor *
Change History (2)
comment:1 by , 8 years ago
Severity: | Problem → Cosmetic |
---|
comment:2 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Added annotation at
https://github.com/boostorg/multi_index/commit/08fe6a360acf99e1732a54ef8b3114455f59116b
Could you please verify this shuts Coverity down?