31 Jul
2011
31 Jul
'11
4:41 a.m.
phoenix is some library to create lambda functions. This is not what I need. I want to get objects out, which I can later work on.
What sort of "work" do you want to do with these objects? Phoenix *is* a library that creates objects representing pieces of C++ code - these objects can then be "called" (operator()) to execute the code they represent. For example, the phoenix expression if_(ref(x) > 5) [ std::cout << ref(x) ] represents an object that, when called, executes the code if (x > 5) { std::cout << x; } (where x is an already-declared variable in your program). Whether or not Phoenix is suitable for you depends on what you want to do with these objects. Regards, Nate.