[Boost-bugs] [Boost C++ Libraries] #10724: UNINIT_CTOR

Subject: [Boost-bugs] [Boost C++ Libraries] #10724: UNINIT_CTOR
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-10-31 08:41:18


#10724: UNINIT_CTOR
---------------------------------------------+-------------------------
 Reporter: anup kumar <anup.shrivastava@…> | Owner: joaquin
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: multi_index
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: |
---------------------------------------------+-------------------------
 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
 *'''

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10724>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC