Boost logo

Boost Users :

Subject: Re: [Boost-users] Problem in compiling simple boost mpl program
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-10-16 18:02:19


AMDG

Missing Rainbow wrote:
> I am making use of boost 1.32.0 (as given in the MPL book CD). I have
> written a small program using mpl::vector. I am getting the following
> error. What could be the problem?
>
>
> "hello.c", line 4: Error: mpl is not defined.
>
> #include "boost/mpl/vector.hpp"
>
> typedef mpl::vector<int, char*, double& > seq;
>

Try

namespace mpl = boost::mpl;

or boost::mpl::vector<...>

In Christ,
Steven Watanabe


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