[eigen] A question for MSVC experts |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen <eigen@xxxxxxxxxxxxxxxxxxx>
- Subject: [eigen] A question for MSVC experts
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Tue, 14 Jun 2011 21:05:58 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=33MUnEHQkycUEhqkXRGUF1EA0xZzO4BVpNkitDH3G04=; b=qM69PKWlRDJX1p96KtPQC5o9yTKEibc7G/LTAp9T6cKv71xK+zrnPXhJt19mBmet7Z Jh8NVbZ6Llm/9VuuWOtpZtAhwIo/aL4C2R4hl9WrzoqIBoCsuygmHOfrI7J0fMQdSPcm 1jK1gr8mrS0ou0Gc4bg+B5Vu8dNAE6ohUiFPg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=SvAWuc07NYeWHX+GrRZl3ZqRQ0yCiYflwsnHI2io73rKF3CBsewpDdqVCW+K6ovksu m9to2LVttdH1OacLm+mP8SATmuzVuPGggDNXqOosfGfn8e/YsuN060wbl2gqEHyS2Ou7 +5N8zswZG8jDMqRlg6SwqWULq5rLPdOGy9eog=
Hi,
in StdVector.h, for MSVC we have the following lines:
using vector_base::insert;
iterator insert(const_iterator position, const value_type& x)
{ return vector_base::insert(position,x); }
void insert(const_iterator position, size_type new_size, const value_type& x)
{ vector_base::insert(position, new_size, x); }
On win32 builds this seems to produce compilation errors like:
"2 overloads have similar conversions"
Actually, I don't really understand the purpose of these two overloads
of insert(). Same for push_back which is simply implemented as:
void push_back(const value_type& x)
{ vector_base::push_back(x); }
According to this thread:
http://forum.kde.org/viewtopic.php?f=74&t=95499 removing these lines
fix the issue and does not introduce new errors.
So does anybody remember what was their purpose?
Gael