|
Boost : |
Subject: [boost] [Assign][GIL] Boost Assign and GIL incompatibility in gcc 4.3.2
From: Andrew Hundt (athundt_at_[hidden])
Date: 2012-03-29 13:07:09
The following source code compiles under clang 3.1, but fails under gcc
4.3.2 with boost version 1.46. It doesn't look like there are updates to
either library in the boost news list since then.
#include <vector>
#include <boost/assign/std/vector.hpp> // for 'operator+=()'
#include <boost/gil/gil_all.hpp>
int main(int argc, char** argv){
using namespace boost::assign;
std::vector<int> values;
values += 1, 2, 3, 4;
typedef boost::gil::rgb8_pixel_t pt;
std::vector<pt> pixValues;
pixValues += pt(1,2,3),pt(2,3,4);
}
-------------------------------------
Compiler versions:
FAILED:
gcc (SUSE Linux) 4.3.2 [gcc-4_3-branch revision 141291]
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
SUCCEEDED:
Apple clang version 3.1 (tags/Apple/clang-318.0.54) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.3.0
Thread model: posix
Cheers!
Andrew Hundt
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk