Phoenix Example problem

"Fletcher, John P" <[email protected]> Sun, 1 Jul 2012 12:21:20 +0000
Newsgroups gmane.comp.parsers.spirit.devel
Message-ID <752EB26CA34754409666BDDCE65E4F99504122CF@exch-mb-g50-01.campus.aston.ac.uk>
Joel

I am having a problem compiling the example container_actor.cpp which is in the Phoenix manual and also the examples.  I have been compiling it with g++ 4.4.3 and also with clang 3.1 and neither works.  The clang error messages look like this:

phoenix_container_actor.cpp:58:35: error: no template named 'function' in
      namespace 'boost::phoenix::expression'; did you mean
      'boost::phoenix::function'?
    typename phoenix::expression::function<phoenix::stl::begin, ...
             ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
                                  boost::phoenix::function      
./boost/phoenix/function/function.hpp:25:12: note: 'boost::phoenix::function'
      declared here
    struct function
           ^
phoenix_container_actor.cpp:58:35: error: too many template arguments for class
      template 'function'
    typename phoenix::expression::function<phoenix::stl::begin, that_type>...
                                  ^                             ~~~~~~~~~~
./boost/phoenix/function/function.hpp:25:12: note: template is declared here
    struct function
           ^
phoenix_container_actor.cpp:58:77: error: expected a qualified name after
      'typename'
  ...that_type>::type const
                 ^
phoenix_container_actor.cpp:58:81: error: expected ';' at end of declaration
      list
  ...that_type>::type const
                     ^
                     ;     
4 errors generated.
make: *** [phoenix_container_actor_clang31] Error 1

I have looked through the phoenix headers and cannot find the namespace  boost::phoenix::expression at all.

Am I missing something?

Best wishes

John


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/