Boost logo

Boost Users :

Subject: Re: [Boost-users] local_time.hpp gives ... boost errors
From: Gavin Lambert (gavinl_at_[hidden])
Date: 2016-09-28 20:04:33


On 28/09/2016 23:44, MAURICE Jean wrote:
> I could narrow the place where boost errors appears. Using VS2010 (with
> ‘show includes’) on a Win7 machine. Boost is installed in
> C:\utilitaires\boost\boost15\boost_1_50_0\boost and this directory name
> has been replaced by – underneath (so it’s version 1.50 !)

Consider upgrading to a newer version of Boost -- 1.50 is over four
years old now.

> --/mpl/list/aux_/preprocessed/plain/list20.hpp(157): error C2143: syntax
> error : missing ',' before 'string'
>
> --/mpl/list/aux_/preprocessed/plain/list20.hpp(163): error C2974:
> 'boost::mpl::list19' : invalid template argument for 'T18', type expected

These sorts of errors generally indicate that it's trying to use a type
that has not yet been defined, probably due to a missing #include.

 From the context, perhaps try to #include <string> beforehand. If that
still fails, it's probably something else nearby -- inspect the given
line of code for more hints.

Or just upgrade; there's a reasonably good chance that the issue has
been fixed since then.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net