Boost logo

Boost :

From: Markus Werle (numerical.simulation_at_[hidden])
Date: 2008-03-11 10:33:08


In the section "Expression Nodes as Fusion Sequences"
you show the follwing code

struct fun_t {};
terminal<fun_t>::type const fun = {{}};

// ...
        // pop_front() removes the "fun" child
        // Extract the ints from the terminal nodes
      , functional::arg<>()
  , display()

It did not became clear to me why a terminal<fun_t>::type
can be initialized with 4 integer arguments.

I thought terminal<fun_t>::type is equivalent to
expr< tag::terminal, args0< fun_t >, 0 >
and should take no args at all.
Could you clarify this?


Boost list run by bdawes at, gregod at, cpdaniel at, john at