Problem in compiling simple boost mpl program
Hi All,
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?
(begin-quote)
lotus 241 $ CC -I$BOOST_ROOT -c hello.c
"/backup/dev_area/anna/mplbookcd/boost_1_32_0/boost/mpl/if.hpp", line
63: Warning (Anachronism): Type names qualified by template parameters
require "typename".
"/backup/dev_area/anna/mplbookcd/boost_1_32_0/boost/mpl/if.hpp", line
72: Where: While specializing "boost::mpl::if_
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
seq;
Try namespace mpl = boost::mpl; or boost::mpl::vector<...> In Christ, Steven Watanabe
participants (2)
-
Missing Rainbow
-
Steven Watanabe