Boost logo

Boost :

Subject: Re: [boost] [type_erasure] Review started (July 18-27, 2012)
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2012-07-24 12:02:54

> -----Original Message-----
> From: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]] On Behalf Of Steven
> Watanabe
> Sent: Tuesday, July 24, 2012 3:12 PM
> To: boost_at_[hidden]
> Subject: Re: [boost] [type_erasure] Review started (July 18-27, 2012)
> On 07/24/2012 07:02 AM, Paul A. Bristow wrote:
> >
> > I've started to read the documentation (and have a possibly-related
> > headache ;-)
> >
> > My impression is that I need this library, so I downloaded and started
> > to try the examples (so I could fumble to confirm my own understanding) but immediately hit
> fails with VS 2010.
> >
> My primary test compiler is VS 2010, so it ought to work. What are the errors that you're
> > Am I right in concluding that I need a C++11 compliant compiler ?

Well that's good.

I have got the code using SVN from boost-sandbox (this looks a day out of date compared to
Sourceforge version but ...)

am compiling with these #includes directories


and am using libs/example/intro.cpp

The first glitch is

I:\boost-sandbox\type_erasure\libs\type_erasure\example\intro.cpp(35): error C2039: 'vector' : is
not a member of 'std'

so I added


then I get

I:\boost-sandbox\type_erasure\libs\type_erasure\example\intro.cpp(54): error C2332: 'class' :
missing tag name
I:\boost-sandbox\type_erasure\libs\type_erasure\example\intro.cpp(54): error C2993: '' : illegal
type for non-type template parameter '<unnamed-tag>'
I:\boost-sandbox\type_erasure\libs\type_erasure\example\intro.cpp(54): error C2143: syntax error :
missing ',' before '...'
I:\boost-sandbox\type_erasure\libs\type_erasure\example\intro.cpp(55): error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
I:\boost-sandbox\type_erasure\libs\type_erasure\example\intro.cpp(55): error C2143: syntax error :
missing ',' before '&'

What am I missing?


Boost list run by bdawes at, gregod at, cpdaniel at, john at