Skip to content

vector size() incompatability #222

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. std::vector<Node<xpu> > nodes;
2.  nodes.push_back(nfactory.CreateNode());
3. LOG(INFO)<<"node number "<<nodes.size();

What is the expected output? What do you see instead?
nodes first element can be retrieved, however, the address of subsequent 
elements in the vector is lost

What version of the product are you using? On what operating system?
glog latest version, ubuntu12.04 

Please provide any additional information below.
gcc4.6.3 
if use unsigned long int tmp=nodes.size();LOG(INFO)<<"node number "<<tmp; every 
thing is fine.

Original issue reported on code.google.com by huashiyi...@gmail.com on 14 Sep 2014 at 7:15

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions