27

Do you know any good resources/articles/examples of boost::fusion library usage?

Boost Fusion looks extremely interesting, I think I understand how it works and how to use the basics, but I'm looking for some resources that show any interesting usage/practices e.g. articles or blogs (apart from boost.org itself).

Piotr Dobrogost
  • 41,292
  • 40
  • 236
  • 366
stefanB
  • 77,323
  • 27
  • 116
  • 141
  • 7
    I have some example of boost fusion usage here: http://stackoverflow.com/questions/455904/print-information-in-test-mode-but-not-in-normal-execution/456184#456184 . Note that the code wasn't intended to be fast (another version made it really near to printf performance), but it's easy to optimize it. – Johannes Schaub - litb May 28 '09 at 00:05
  • Very good question, fusion is hard to understand for newbies like me. May be the good way to start with fusion is first to look at meta-programming introduction tutorials (without any MP lib). Hope that confirmed users will share here their precious knowledge about fusion. – Laurent Nov 28 '13 at 18:05

4 Answers4

7

I thought the comment by johannes-schaub-litb should be an answer, as I nearly overlooked it.

So here it is: Johannes' excellent example.

There are also some other examples in Stackoverflow. I particularly liked the first answer here.

Community
  • 1
  • 1
matiu
  • 7,469
  • 4
  • 44
  • 48
3

https://www.youtube.com/watch?v=6V73Q7ULFi0

Brief intro to Fusion, but you might prefer it to docs.

NoSenseEtAl
  • 28,205
  • 28
  • 128
  • 277
  • 2
    I really like when he (Michael Caisse) explains things. I wanted to give link for slides https://github.com/boostcon/cppnow_presentations_2013/blob/master/thu/solving_world_problems_with_fusion.pdf?raw=true – Kadir Erdem Demir Jan 04 '15 at 17:11
2

Seems like there aren't as many articles/posts about the usage (apart from the actual boost documentation of course).

stefanB
  • 77,323
  • 27
  • 116
  • 141
2

Here is what I have found while trying to learn fusion :

  • the slides of the boostcon 09 presentation of fusion by one of its authors
  • the slides of the talk of Michael Caisse at boostcon 13 (NoSenseEtAl provided a link to the recording of the talk)
Laurent
  • 812
  • 5
  • 15