This is the mail archive of the
mailing list for the libstdc++ project.
Bugs in gcc 4.4 experimental c++0x libstdc++?
- From: "Germán Diago" <germandiago at gmail dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Thu, 15 May 2008 22:46:40 +0200
- Subject: Bugs in gcc 4.4 experimental c++0x libstdc++?
Hello. I've been using g++-4.4 from svn and I think there is a bug in
The function template <class... _Args> void push_back(_Args... args)
doesn't update the vector size.
And another thing I don't know if it's a bug:
I used code like this:
void f(vector<int> && arg);
int main(int argc, char * argv)
v.push_back(1); v.push_back(2); v.push_back(3);
Shouldn't this code transfer v contents to the local variable arg. It
doesn't call neither the move constructor nor
the move operator=. I checked if I was using the correct headers and I
was. Thanks for your help.