----- Original Message -----
From: John Maddock <jz.maddock@googlemail.com>
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] Unable to build old project using boost
Date: 2015-04-13 00:08



On 12/04/2015 15:24, Juan Ramírez wrote:
It seems that boost wasn't compiled with VC++ 9.

The macro BOOST_NO_RVALUE_REFERENCES is not defined, which means boost thinks the compiler supports rvalue references.

Since the code is header only, how Boost was built is irrelevant - but there must be some mismatch between what Boost.Config is doing and what type_traits expects.  The only thing I can think of that would cause that are either:

* A really really old version of Boost.Config with a newer version of type_traits - not sure how you would manage that though, or...
* You have a custom config (in boost/config/user.hpp) which is setup for a newer MSVC version.

If all else fails, try with a fresh boost source tree,

HTH, John.


-------------------------------------------------------


Thank you very much John.


I didn't changed anything of the boost installation whatsoever, except for the build itself, before that problem.

I was using exactly the same thing as I did 2 yearly ago, when it worked.


Now it works, for boost 1.39.0, 1.49.0 and 1.57.0. But I cannot think of anything that I did made the difference.


Best regards,

Max


On Sat, Apr 11, 2015 at 10:33 AM, Edward Diener <eldiener@tropicsoft.com> wrote:
On 4/11/2015 6:33 AM, Max wrote:
Hi guys,


This must be a trivial question, but I just couldn't sort it out.


I'm compiling a old project which used to work fine. But now I received
a bunch of errors (this is not a surprise because the project have a lot
of other dependencies and I'm in the way of setting them up) with the
first one as:


c:\lib\boost_1_49_0\boost\type_traits\add_lvalue_reference.hpp(19) :
error C2143: syntax error : missing ',' before '&&'


I'm using Win 7 SP1 + VS 2008 with SP + boost 1.49.0 (I'm using this
because I previous used this. If this works fine, I will consider
migrating to the latest version)


Thanks for any hints.

If you are using an older version of Boost and it was working before and now it is not working, something must have changed. Try to determine what might have changed.

You also need to show source code you are compiling when the error occurs.


_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users



--
Juan
:wq


_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users