Boost logo

Boost Users :

Subject: [Boost-users] [Fusion] Adapting template nested structure
From: Kamil Renczewski (kamil.renczewski_at_[hidden])
Date: 2011-02-19 11:05:55


Hello
I have a compilation error when using BOOST_FUSION_ADAPT_TPL_STRUCT on nested structure.

namespace nsp
{
     template< class T >
     struct Outer
     {
          struct Inner
          {
               int mint;
          };
     };
}

BOOST_FUSION_ADAPT_TPL_STRUCT(
     (T),
     (nsp::Outer::Inner) (T),
     (int, mint)
)

Above code generates compiler errors on g++ 4.4.5.
Am I doing something wrong?
Or maybe BOOST_FUSION_ADAPT_TPL_STRUCT can't adapt nested structures? If so, how can I workaround this?

-- 
best regards
Kamil Renczewski

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