6 May
2010
6 May
'10
11:49 a.m.
Alexander Vinokur wrote:
Hi,
I have the following problem with boost::assign::list_of
HP-UX aCC: HP C/aC++ B3910B A.06.25 [Nov 30 2009] BOOST 1.34 boost2.cpp // ----------------------------
#include
#include <vector>
int main() { const std::vector<int> primes = std::vector<int> (boost::assign::list_of(2)(3)(5)(7)(11));
This works on boost 1.42.0 on MSVC8. Have you tried the alternatives: const std::vector<int> primes = boost::assign::list_of(2)(3)(5)(7)(11); or const std::vector<int> primes(boost::assign::list_of(2)(3)(5)(7)(11)); if these don't work, have you looked at whether tests for assign library pass on HP acc? Jeff