|
Boost Users : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-04-12 16:50:05
Stephen Torri wrote:
> void
> add_Component ( Component::ptr_t obj_ptr )
> {
> bool no_duplicate;
> IdVertexMap_t::iterator pos;
> Vertex_t node;
>
> if ( obj_ptr.get() == 0 )
> {
> std::cerr << boost::format("Exception throw in %s at
> line %d") % __FILE__
> % __LINE__
> << std::endl;
>
> return;
> }
>
> boost::tie (pos, no_duplicate) = m_index.insert
> (std::make_pair(obj_ptr->get_ID(), node));
MSVC 8 says that you're using an uninitialized 'node' variable here. Is this
intended?
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net