Boost logo

Boost :

From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2004-02-06 15:27:55


Brock

"Brock Peabody" <brock.peabody_at_[hidden]> wrote in message
news:004701c3ecea$d06eca90$360010ac_at_npci.com...
> If I have a vc7.1 source file with nothing but:
>
> #include "stdafx.h"
>
> #include <boost/bind.hpp>
> #include <boost/variant.hpp>
>
> I get the following errors:
>
> c:\Program Files\Microsoft Visual Studio .NET
> 2003\Vc7\include\boost\mpl\less.hpp(39) : error C2760: syntax error :
> expected ',' not ';'

[snip]

> The problems go away if I include variant.hpp first. Any ideas?

Do you mean:

    #include <boost/variant.hpp>
    #include "stdafx.h"
    #include <boost/bind.hpp>

If so and you are using precompiled headers, then #include
<boost/variant.hpp> will be ignored.

Otherwise, I've not used variant yet. :(

Jeff F


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk