pombreda / google-glog

Automatically exported from code.google.com/p/google-glog
Other
0 stars 0 forks source link

vector size() incompatability #222

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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