[Boost-bugs] [Boost C++ Libraries] #10723: UNINIT_CTOR(boost::​multi_index::​detail::​bidir_node_iterator<boost::​multi_index::​detail::​ordered_index_node<boost::​multi_index::​detail::​ordered_index_node<boost::​multi_index does not get initialised)

Subject: [Boost-bugs] [Boost C++ Libraries] #10723: UNINIT_CTOR(boost::​multi_index::​detail::​bidir_node_iterator<boost::​multi_index::​detail::​ordered_index_node<boost::​multi_index::​detail::​ordered_index_node<boost::​multi_index does not get initialised)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-10-31 07:42:43


#10723: UNINIT_CTOR(boost::​multi_index::​detail::​bidir_node_iterator<boost::
multi_index::​detail::​ordered_index_node<boost::​multi_index::​detail::
ordered_index_node<boost::​multi_index does not get initialised)
---------------------------------------------+-------------------------
 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: UNINIT_CTOR |
---------------------------------------------+-------------------------
 In default constructor for the class "bidir_node_iterator " the private
 members are not initialized hence it shows a code quality error
 UNINIT_CTOR() as defined below :-

 template<typename Node>
 class bidir_node_iterator:
   public bidirectional_iterator_helper<
   bidir_node_iterator<Node>,
   typename Node::value_type,
   std::ptrdiff_t,
   const typename Node::value_type*,
   const typename Node::value_type&>
   {
       public:

 ''' Uninitialized pointer field (UNINIT_CTOR)2. uninit_member: Non-
 static class member "node" is not initialized in this constructor nor in
 any functions that it calls.
  bidir_node_iterator(){}'''

 *
 *
 private:
  Node* node;
 }

 '''*** This Private member has to be initialized in default constructor
 ***'''

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10723>
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