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_".
"/backup/dev_area/anna/mplbookcd/boost_1_32_0/boost/mpl/if.hpp", line
72: Where: Specialized in non-template code.
"/backup/dev_area/anna/mplbookcd/boost_1_32_0/boost/mpl/aux_/preprocessed/no_ttp/plus.hpp",
line 148: Warning (Anachronism): Type names qualified by template
parameters require "typename".
"/backup/dev_area/anna/mplbookcd/boost_1_32_0/boost/mpl/aux_/preprocessed/no_ttp/minus.hpp",
line 148: Warning (Anachronism): Type names qualified by template
parameters require "typename".
"/backup/dev_area/anna/mplbookcd/boost_1_32_0/boost/mpl/vector/aux_/iterator.hpp",
line 92: Error: Partial specialization parameter m_ is not used in the
arguments.
"hello.c", line 4: Error: mpl is not defined.
"hello.c", line 4: Warning (Anachronism): Using vector as a template
without a declaration.
"hello.c", line 4: Error: vector is not defined.
3 Error(s) and 4 Warning(s) detected.
lotus 242 $ cat hello.c
#include "boost/mpl/vector.hpp"
typedef mpl::vector seq;
lotus 243 $ CC -V
CC: Sun C++ 5.5 2003/03/12
lotus 244 $ uname -a
SunOS lotus 5.10 Generic_125100-09 sun4v sparc SUNW,Sun-Fire-T200
lotus 245 $
(end-quote)
Rgds,
anna