When is boost phoenix useful? [duplicate]
Asked Answered
D

2

16

Possible Duplicate:
What are the benefits of using Boost.Phoenix?

So I started reading the documentation for boost phoenix.

However, I must admit that I don't quite understand the purpose of the library, especially since we have language support for lambdas in C++0x.

Could someone please explain or give me an example?

Dauphin answered 28/5, 2011 at 10:0 Comment(0)
H
11

Well, not all C++ compilers support C++0x for a start.

Then there are some things that are not possible with C++0x but that are possible with phoenix. See this for instance: C++0x lambdas with template parameters?.

Helpmate answered 28/5, 2011 at 10:9 Comment(0)
C
15

The Phoenix talk at BoostCon 2011 has a slide comparing Phoenix function objects with C++0x lambdas. See slide 24 here.

Carbamidine answered 28/5, 2011 at 15:14 Comment(0)
H
11

Well, not all C++ compilers support C++0x for a start.

Then there are some things that are not possible with C++0x but that are possible with phoenix. See this for instance: C++0x lambdas with template parameters?.

Helpmate answered 28/5, 2011 at 10:9 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.