Re: Need help compiling use of std::vector

2014-09-25 Thread Konstantin Belousov
On Wed, Sep 24, 2014 at 08:57:17PM +0200, Matthias Andree wrote: > Am 24.09.2014 um 17:04 schrieb Shane Ambler: > > I am trying to compile the new version of a port I maintain and have > > trouble related to std::vector. The code producing the error can be > > boiled down to the following test case

Re: Need help compiling use of std::vector

2014-09-24 Thread Shane Ambler
On 25/09/2014 04:27, Matthias Andree wrote: > Am 24.09.2014 um 17:04 schrieb Shane Ambler: >> Using the above code >> clang++ -m32 test.cpp >> fails with >> >> /usr/include/c++/4.2/bits/stl_algobase.h:641:15: error: assigning to >> 'const char *' from incompatible type 'const int' > > I don't thi

Re: Need help compiling use of std::vector

2014-09-24 Thread Matthias Andree
Am 24.09.2014 um 17:04 schrieb Shane Ambler: > I am trying to compile the new version of a port I maintain and have > trouble related to std::vector. The code producing the error can be > boiled down to the following test case, which compiles as 64bit but > fails as 32bit. > > #include > #include